Skip to content

Commit cbe35e8

Browse files
committed
Code cleanup
1 parent 3053ef3 commit cbe35e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "labelzoom-cf-api-proxy",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"private": true,
55
"scripts": {
66
"deploy": "wrangler deploy",

src/cors.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const corsHeaders = {
33
"Access-Control-Allow-Methods": "GET,HEAD,POST,PUT,DELETE,OPTIONS",
44
"Access-Control-Max-Age": "86400",
55
"Access-Control-Allow-Credentials": "true",
6-
"Access-Control-Expose-Headers": "X-Request-Id",
6+
"Access-Control-Expose-Headers": "X-LZ-RequestID",
77
};
88

99
/**
@@ -54,7 +54,7 @@ export function responseWithAllowOrigin(response: Response, origin = '*'): Respo
5454
// Add cache control headers
5555
newResponse.headers.set('Access-Control-Allow-Origin', origin);
5656
newResponse.headers.set('Access-Control-Allow-Credentials', 'true');
57-
newResponse.headers.set('Access-Control-Expose-Headers', 'X-Request-Id');
57+
newResponse.headers.set('Access-Control-Expose-Headers', 'X-LZ-RequestID');
5858

5959
return newResponse;
6060
}

0 commit comments

Comments
 (0)