Phantom-node module unable to load external resources

醉酒当歌 提交于 2019-12-05 19:26:20
svenhornberg

looks like i need to set a timeout and wait that all external resources are loaded.

page.set('content') dosen't work with dynamic content in phantomjs

i got it working, but a timeout is not what i want. If i find any better way i will post it.

Artjom B.

What you want to set is

page.set('settings.webSecurityEnabled', false);

Which enables cross domain requests. The other option localToRemoteUrlAccessEnabled does not affect your case because you don't use file: resources but you rather overwrite about:blank.

Other issues might be SSL/TLS related. See my answer here for more help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!