Phantomjs: using https on localhost

Created on 15 Oct 2015  路  2Comments  路  Source: ariya/phantomjs

Resource error: Error code: 6 ErrorString: SSL handshake failed url: https://localhost:3000/ id: 1
Resource Recived: https://localhost:3000/
[warning] [phantom] Loading resource failed with status=fail: https://localhost:3000/
[debug] [phantom] Successfully injected Casper client-side utilities
Error:    SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.
file:     phantomjs://webpage.evaluate()
line:     2
function: 

Can we run localhost using https on phantomJS. ?

Most helpful comment

solved

--acceptSslCerts=true --web-security=no --ignore-ssl-errors=yes --ssl-protocol=any

All 2 comments

Is by any chance your webpage trying to load images on canvas? Did you check the page source for possible errors? One reason for this kind of error is attempting to load images/content from a location which is outside of the domain of your file.

solved

--acceptSslCerts=true --web-security=no --ignore-ssl-errors=yes --ssl-protocol=any
Was this page helpful?
0 / 5 - 0 ratings