Skip to content

Commit

Permalink
feat: 💃 add authorization header in CORS ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
puria committed Mar 8, 2024
1 parent dc25afa commit 128bf8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Dir.ready(async () => {
const setCorsHeaders = (res: HttpResponse) => {
res.writeHeader('Access-Control-Allow-Origin', '*')
.writeHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
.writeHeader('Access-Control-Allow-Headers', 'content-type')
.writeHeader('Access-Control-Allow-Headers', 'content-type, authorization')
}

const generateRoutes = (app: TemplatedApp) => {
Expand Down

0 comments on commit 128bf8f

Please sign in to comment.