Skip to content

Commit

Permalink
add content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed May 1, 2019
1 parent 7eb4e62 commit a5208f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routers/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ router.use(async (ctx, next) => {
"Access-Control-Allow-Methods",
"GET, HEAD, POST, PUT, DELETE, PATCH"
)
ctx.set("Access-Control-Allow-Headers", "Authorization")
ctx.set("Access-Control-Allow-Headers", "Authorization, Content-Type")
ctx.set("Access-Control-Max-Age", (24 * 60 * 60).toString())

await next()
Expand Down

0 comments on commit a5208f4

Please sign in to comment.