Gilles has uploaded a new change for review. https://gerrit.wikimedia.org/r/119027
Change subject: Expose some headers to CORS requests ...................................................................... Expose some headers to CORS requests For the launch of Media Viewer 0.2 we want to measure detailed network performance or image loads. In production images are always hosted on a different domain, which causes a CORS request when we measure the performance with the Navigation Timing API. Browsers block reading some headers we're interested in unless the header added in this changeset is present. This will allow us to measure the image load performance of varnish hits vs varnish misses in production, which is a critical piece of information for Media Viewer. Change-Id: I3df492fbb9c6b34961b35cc13c01bb8c82f9e794 --- M templates/varnish/upload-frontend.inc.vcl.erb 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/27/119027/1 diff --git a/templates/varnish/upload-frontend.inc.vcl.erb b/templates/varnish/upload-frontend.inc.vcl.erb index 574f033..fd69b8d 100644 --- a/templates/varnish/upload-frontend.inc.vcl.erb +++ b/templates/varnish/upload-frontend.inc.vcl.erb @@ -84,4 +84,5 @@ } set resp.http.Access-Control-Allow-Origin = "*"; + set resp.http.Access-Control-Expose-Headers = "Age, Content-Length, Date, X-Cache, X-Varnish"; } -- To view, visit https://gerrit.wikimedia.org/r/119027 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3df492fbb9c6b34961b35cc13c01bb8c82f9e794 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Gilles <gdu...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits