Skip to content

Commit

Permalink
增加跨域头x-requested-with
Browse files Browse the repository at this point in the history
  • Loading branch information
a826604005 committed Jul 17, 2023
1 parent 92eb236 commit a909e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const app = WebSocket(new Koa())
app.use(async (ctx, next) => {
ctx.set("Access-Control-Allow-Origin", ctx.header.origin || "*")
ctx.set("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS")
ctx.set("Access-Control-Allow-Headers", "access-token,webfunny-secret-code,Content-Type")
ctx.set("Access-Control-Allow-Headers", "access-token,webfunny-secret-code,x-requested-with,Content-Type")
ctx.set("Access-Control-Allow-Credentials", true)
ctx.set("X-Powered-By", "3.2.1")
ctx.set("Content-Type", "application/json;charset=utf-8")
Expand Down

0 comments on commit a909e3b

Please sign in to comment.