{"action":"created","issue":{"url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/526","repository_url":"https://api.github.com/repos/teampoltergeist/poltergeist","labels_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/526/labels{/name}","comments_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/526/comments","events_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/526/events","html_url":"https://github.com/teampoltergeist/poltergeist/issues/526","id":40773789,"number":526,"title":"Unsafe JavaScript attempt to access frame with URL http://googleads.g.doubleclick.net/pagead/html/r20140819/r20140417/zrt_lookup.html from frame with URL about:blank. Domains, protocols and ports must match.","user":{"login":"gaoguoxin","id":650529,"avatar_url":"https://avatars.githubusercontent.com/u/650529?v=3","gravatar_id":"","url":"https://api.github.com/users/gaoguoxin","html_url":"https://github.com/gaoguoxin","followers_url":"https://api.github.com/users/gaoguoxin/followers","following_url":"https://api.github.com/users/gaoguoxin/following{/other_user}","gists_url":"https://api.github.com/users/gaoguoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/gaoguoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaoguoxin/subscriptions","organizations_url":"https://api.github.com/users/gaoguoxin/orgs","repos_url":"https://api.github.com/users/gaoguoxin/repos","events_url":"https://api.github.com/users/gaoguoxin/events{/privacy}","received_events_url":"https://api.github.com/users/gaoguoxin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/teampoltergeist/poltergeist/labels/needs-info","name":"needs-info","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2014-08-21T05:32:22Z","updated_at":"2016-02-28T21:53:38Z","closed_at":"2015-11-24T00:31:01Z","body":"Sometimes  I got this error  \r\n```ruby\r\nUnsafe JavaScript attempt to access frame with URL http://googleads.g.doubleclick.net/pagead/html/r20140819/r20140417/zrt_lookup.html from frame with URL about:blank. Domains, protocols and ports must match.\r\n```\r\nand here is my code\r\n```ruby\r\nrequire \"capybara\"\r\nrequire 'capybara/poltergeist'\r\nrequire \"proxy\"\r\nclass Man\r\n  \tinclude Capybara::DSL\r\n  \tdef initialize(site,wait=10)\r\n  \t\tproxy = Proxy.new\r\n\r\n\t\toptions = {\r\n\t\t   :js_errors => false,\r\n\t\t   :phantomjs_options => [\"--proxy=#{proxy.host}:#{proxy.port}\"]\r\n\t\t}\r\n\r\n\t\tCapybara.register_driver :poltergeist do |app|\r\n\t\t  Capybara::Poltergeist::Driver.new(app, options)\r\n\t\tend\r\n\r\n        Capybara.configure do |conf|\r\n        \tconf.run_server              = false\r\n        \tconf.app                     = ''\r\n        \tconf.default_driver          = :poltergeist\r\n        \tconf.javascript_driver       = :poltergeist\r\n        \tconf.default_wait_time       = wait        \r\n        \tconf.ignore_hidden_elements  = false\r\n        \tconf.app_host                = site\r\n        end\r\n  \t\tsuper()\r\n  \tend\r\n\r\n  \tdef get_info\r\n  \t\tvisit('/')\r\n  \tend\r\nend\r\n```\r\n\r\nif I have some error? or something that I forget to config?"},"comment":{"url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/comments/189951458","html_url":"https://github.com/teampoltergeist/poltergeist/issues/526#issuecomment-189951458","issue_url":"https://api.github.com/repos/teampoltergeist/poltergeist/issues/526","id":189951458,"user":{"login":"AhmedKamal20","id":14352372,"avatar_url":"https://avatars.githubusercontent.com/u/14352372?v=3","gravatar_id":"","url":"https://api.github.com/users/AhmedKamal20","html_url":"https://github.com/AhmedKamal20","followers_url":"https://api.github.com/users/AhmedKamal20/followers","following_url":"https://api.github.com/users/AhmedKamal20/following{/other_user}","gists_url":"https://api.github.com/users/AhmedKamal20/gists{/gist_id}","starred_url":"https://api.github.com/users/AhmedKamal20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhmedKamal20/subscriptions","organizations_url":"https://api.github.com/users/AhmedKamal20/orgs","repos_url":"https://api.github.com/users/AhmedKamal20/repos","events_url":"https://api.github.com/users/AhmedKamal20/events{/privacy}","received_events_url":"https://api.github.com/users/AhmedKamal20/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T21:53:38Z","updated_at":"2016-02-28T21:53:38Z","body":"But got another one : \r\n\r\n```\r\nGiven URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings.  It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.\r\n```\r\n\r\n@twalpole Did you faced this before ? "}}