Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: content/renderer/p2p/port_allocator.cc

Issue 8566012: Allow cross-origin requests for relay http requests made in Transport API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/port_allocator.cc
diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc
index 53753f59676950b0328a101d44329aa6cfcedaca..2146b9cc1a581353af1bf192d48ebf54eb85fe4c 100644
--- a/content/renderer/p2p/port_allocator.cc
+++ b/content/renderer/p2p/port_allocator.cc
@@ -177,8 +177,13 @@ void P2PPortAllocatorSession::AllocateRelaySession() {
WebURLLoaderOptions options;
options.allowCredentials = false;
+
+ // TODO(sergeyu): Set to CrossOriginRequestPolicyUseAccessControl
+ // when this code can be used by untrusted plugins.
+ // See http://crbug.com/104195 .
options.crossOriginRequestPolicy =
- WebURLLoaderOptions::CrossOriginRequestPolicyUseAccessControl;
+ WebURLLoaderOptions::CrossOriginRequestPolicyAllow;
+
relay_session_request_.reset(
allocator_->web_frame_->createAssociatedURLLoader(options));
if (!relay_session_request_.get()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698