Gilles has uploaded a new change for review.
https://gerrit.wikimedia.org/r/252700
Change subject: Enable CORS for Varnish
......................................................................
Enable CORS for Varnish
Media Viewer needs CORS to work properly.
Bug: T118437
Change-Id: I56348096520d78228d09a81ffd8547ff2289d8c5
---
M puppet/modules/thumbor/files/varnish.vcl
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/00/252700/1
diff --git a/puppet/modules/thumbor/files/varnish.vcl
b/puppet/modules/thumbor/files/varnish.vcl
index 89e9afc..858c8fa 100644
--- a/puppet/modules/thumbor/files/varnish.vcl
+++ b/puppet/modules/thumbor/files/varnish.vcl
@@ -85,4 +85,7 @@
} elsif (bereq.http.X-Url ~ "^/images/") {
set beresp.http.xkey = "File:" + regsub(bereq.http.X-Url,
"^/images/[^/]+/[^/]+/(.*)", "\1");
}
+
+ # Allow CORS
+ set beresp.http.Access-Control-Allow-Origin = "*";
}
--
To view, visit https://gerrit.wikimedia.org/r/252700
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I56348096520d78228d09a81ffd8547ff2289d8c5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Gilles <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits