Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

HI,怎么设置Access-Control-Allow-Origin #7

Open
cnkerry opened this issue Oct 5, 2018 · 1 comment
Open

HI,怎么设置Access-Control-Allow-Origin #7

cnkerry opened this issue Oct 5, 2018 · 1 comment

Comments

@cnkerry
Copy link

cnkerry commented Oct 5, 2018

HI,怎么设置Access-Control-Allow-Origin

@chenjf2k
Copy link

this.Response.Headers.Add("Access-Control-Allow-Origin", "*");

上面代码可放在特定的方法中。

至于怎么全局设置,我还不太清楚。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants