Skip to content

Commit

Permalink
feat: hardcode methods
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Nov 26, 2024
1 parent becc02f commit 652f5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function initComponents(): Promise<AppComponents> {

const cors = {
origin: (await config.requireString('CORS_ORIGIN')).split(';').map(origin => new RegExp(origin)),
methods: JSON.parse(validCORSJsonString),
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
credentials: true
}

Expand Down

0 comments on commit 652f5c5

Please sign in to comment.