Skip to content

Allow outer context to access arbitrary URLs #11217

Closed
cburgmer opened this Issue Apr 9, 2013 · 2 comments
@cburgmer
cburgmer commented Apr 9, 2013

Accessing arbitrary domains from PhantomJS' outer context is currently only possible through a dirty workaround (e.g. https://gist.github.com/cburgmer/5339864). For sandboxed webpages this is however easily doable by passing --web-security=no to phantom on the console.

I believe that the outer context should be able to access any resources without restrictions, similar to e.g. Node.js.

Relevant discussion in the phantomjs group: https://groups.google.com/forum/#!topic/phantomjs/Kb06DuqIoxw

@Vitallium Vitallium was assigned Apr 9, 2013
@JamesMGreene
Collaborator

@Vitallium and I are looking into this.

@Vitallium Vitallium added a commit to Vitallium/phantomjs that referenced this issue Jun 15, 2014
@Vitallium Vitallium Allow outer context to access arbitrary URLs
To grant universal access to a web page
attribute "WebSecurityEnabled" must be applied during the initializing
security context for Document instance. Setting up it later will not cause any effect
See <qt\src\3rdparty\webkit\Source\WebCore\dom\Document.cpp:4468>

Issue: ariya#11217
bb3df80
@Vitallium
Collaborator

Fixed in d938edd

@Vitallium Vitallium closed this May 9, 2015
@Vitallium Vitallium added a commit to Vitallium/phantomjs that referenced this issue May 23, 2015
@Vitallium Vitallium Allow outer context to access arbitrary URLs
To grant universal access to a web page
attribute "WebSecurityEnabled" must be applied during the initializing
security context for Document instance. Setting up it later will not cause any effect
See <qt\src\3rdparty\webkit\Source\WebCore\dom\Document.cpp:4468>

Issue: ariya#11217
0746307
@eugeneos eugeneos added a commit that referenced this issue May 30, 2015
@Vitallium Vitallium Allow outer context to access arbitrary URLs
To grant universal access to a web page
attribute "WebSecurityEnabled" must be applied during the initializing
security context for Document instance. Setting up it later will not cause any effect
See <qt\src\3rdparty\webkit\Source\WebCore\dom\Document.cpp:4468>

Issue: #11217
2976133
@Vitallium Vitallium added a commit to Vitallium/phantomjs that referenced this issue May 31, 2015
@Vitallium Vitallium Allow outer context to access arbitrary URLs
To grant universal access to a web page
attribute "WebSecurityEnabled" must be applied during the initializing
security context for Document instance. Setting up it later will not cause any effect
See <qt\src\3rdparty\webkit\Source\WebCore\dom\Document.cpp:4468>

Issue: ariya#11217
85591c5
@Vitallium Vitallium added a commit that referenced this issue Jun 27, 2015
@Vitallium Vitallium Allow outer context to access arbitrary URLs
To grant universal access to a web page
attribute "WebSecurityEnabled" must be applied during the initializing
security context for Document instance. Setting up it later will not cause any effect
See <qt\src\3rdparty\webkit\Source\WebCore\dom\Document.cpp:4468>

Issue: #11217
1b5ca01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.