Skip to content

Commit

Permalink
little CORS experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
twrichards committed Nov 27, 2023
1 parent 61775e6 commit 4b6af92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrapping-lambda/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ server.get(

applyJavascriptContentType(response);

response.header(
"Access-Control-Allow-Origin",
"chrome-extension://pphoolhnilndehkpmjgdnbgmbohjjemm"
);
response.header("Access-Control-Allow-Credentials", "true");

const mainJsFilename: string | undefined = fs
.readdirSync(clientDirectory)
.filter(
Expand Down

0 comments on commit 4b6af92

Please sign in to comment.