Skip to content
Snippets Groups Projects
Commit b3f88174 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Allow any outgoing XHR connections

parent e8703f64
No related branches found
No related tags found
No related merge requests found
......@@ -831,7 +831,7 @@ $CONFIG = array(
'custom_csp_policy' =>
"default-src 'self'; script-src 'self' 'unsafe-eval'; ".
"style-src 'self' 'unsafe-inline'; frame-src *; img-src *; ".
"font-src 'self' data:; media-src *",
"font-src 'self' data:; media-src *; connect-src *",
/**
......
......@@ -212,7 +212,8 @@ class OC_Response {
. 'frame-src *; '
. 'img-src *; '
. 'font-src \'self\' data:; '
. 'media-src *');
. 'media-src *; '
. 'connect-src *');
header('Content-Security-Policy:' . $policy);
// https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment