1
|
context.Response.AddHeader(
"Access-Control-Allow-Origin"
,
"*"
);
|
2.ajax请求,要声明cors,在ajax第一行代码声明一次:
1
|
context.Response.AddHeader(
"Access-Control-Allow-Origin"
,
"*"
);
|