Skip to content

Commit a909e3b

Browse files
committed
增加跨域头x-requested-with
1 parent 92eb236 commit a909e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monitor/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const app = WebSocket(new Koa())
1313
app.use(async (ctx, next) => {
1414
ctx.set("Access-Control-Allow-Origin", ctx.header.origin || "*")
1515
ctx.set("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS")
16-
ctx.set("Access-Control-Allow-Headers", "access-token,webfunny-secret-code,Content-Type")
16+
ctx.set("Access-Control-Allow-Headers", "access-token,webfunny-secret-code,x-requested-with,Content-Type")
1717
ctx.set("Access-Control-Allow-Credentials", true)
1818
ctx.set("X-Powered-By", "3.2.1")
1919
ctx.set("Content-Type", "application/json;charset=utf-8")

0 commit comments

Comments
 (0)