Skip to content

Instantly share code, notes, and snippets.

View KojoEnch's full-sized avatar

Thierry Raoux KojoEnch

  • sensiolabs.com
  • Southern Alps, France
View GitHub Profile
@derekclee
derekclee / default.vcl
Last active July 15, 2022 09:52
Varnish Cache Set CORS headers
sub vcl_deliver {
if (req.url ~ "/fonts/") {
set resp.http.Access-Control-Allow-Origin = "*";
set resp.http.Access-Control-Allow-Methods = "GET, OPTIONS";
set resp.http.Access-Control-Allow-Headers = "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token";
}
}