Unsafe JavaScript attempt to access frame

720 views
Skip to first unread message

Mr. Rossi

unread,
Jun 17, 2015, 3:04:15 AM6/17/15
to casp...@googlegroups.com
Hi,

how can i solve this warning from CasperJS:

Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file:///usr/lib/node_modules/casperjs/bin/bootstrap.js. Domains, protocols and ports must match.

I only input in command-line:
# casperjs --version

CasperJS is version 1.1.0-beta3
PhantomJS is version 1.9.8

Thanks for help.
Bye


Bartek K

unread,
Jun 25, 2015, 5:39:07 AM6/25/15
to casp...@googlegroups.com
On Wednesday, June 17, 2015 at 9:04:15 AM UTC+2, Mr. Rossi wrote:
how can i solve this warning from CasperJS:

Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL file:///usr/lib/node_modules/casperjs/bin/bootstrap.js. Domains, protocols and ports must match.

I only input in command-line:
# casperjs --version

Try using this param: --web-security=false

Regards,
Bartek.

Gabe Misura

unread,
Jun 25, 2015, 2:28:02 PM6/25/15
to casp...@googlegroups.com
Maybe this as well:

  --local-to-remote-url-access=<val>   Allows local content to access remote URL: 'true' or 'false' (default)


--local-to-remote-url=true

Mr. Rossi

unread,
Jun 26, 2015, 3:27:02 AM6/26/15
to casp...@googlegroups.com
Thanks, for your hints. But both options

--web-security=false

and

--local-to-remote-url-access=true

don't solve the warning.

bye g.g.

Richard Wilde

unread,
Jun 26, 2015, 10:36:19 AM6/26/15
to casp...@googlegroups.com

If you have used NPM to install downgrade phantom 1.9.8 to 1.9.7

 

https://repository-javaetmoi.forge.cloudbees.com/release/org/phantomjs/phantomjs/1.9.7/

 

overwrite it here:-

 

> explorer %APPDATA%\npm\node_modules\casperjs\node_modules\phantomjs\lib\phantom

 

Many Thanks
Richard

--
CasperJS homepage & documentation: http://casperjs.org/
CasperJS @github: https://github.com/n1k0/casperjs
 
You received this message because you are subscribed to the Google Groups "casperjs" group.
Visit this group at http://groups.google.com/group/casperjs?hl=en.
---
You received this message because you are subscribed to the Google Groups "CasperJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to casperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mr. Rossi

unread,
Jul 4, 2015, 4:09:47 AM7/4/15
to casp...@googlegroups.com
Yes, you are right. That works! Did anybody know, if new phantomjs version 2.0 correct this notice?

Thanks!!!
Reply all
Reply to author
Forward
0 new messages