jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Dduvall: Looks good to me, approved
Filippo Giunchedi: Looks good to me, but someone else must approve
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I56348096520d78228d09a81ffd8547ff2289d8c5
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Gilles <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Dduvall <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: Giuseppe Lavagetto <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits