Skip to content

Commit

Permalink
fix: allow browsers to set content-type json
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed Nov 8, 2024
1 parent 7c0c094 commit 9a6f897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const v1Routes = (cfg: APIConfig, store: StoreI) => async (server: FastifyTypebo
await server.register(cors, {
origin: true,
methods: ['DELETE', 'GET', 'POST', 'PUT'],
allowedHeaders: ['Authorization']
allowedHeaders: ['Authorization', 'Content-Type']
})

if (cfg.useSwagger ?? false) {
Expand Down

0 comments on commit 9a6f897

Please sign in to comment.