Skip to content

Commit 5e747ad

Browse files
committed
Bugfix (vcl_deliver uses resp)
1 parent 9067481 commit 5e747ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vcl/add_cors_headers.vcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set CORS headers only if client sends the Origin Header and only if we are executing on the edge
22
if ( fastly.ff.visits_this_service == 0 && req.http.Origin ) {
3-
set beresp.http.Access-Control-Allow-Origin = "*";
4-
set beresp.http.Access-Control-Allow-Methods = "GET";
5-
set beresp.http.Access-Control-Allow-Headers = "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type";
6-
}
3+
set resp.http.Access-Control-Allow-Origin = "*";
4+
set resp.http.Access-Control-Allow-Methods = "GET";
5+
set resp.http.Access-Control-Allow-Headers = "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type";
6+
}

0 commit comments

Comments
 (0)