if ($http_origin ~* (baidu.com)) {
add_header 'Access-Control-Allow-Origin' '$http_origin';
add_header 'Access-Control-Allow-Credentials' 'true';
}
*.baidu.com来的请求都开放
if ($http_origin ~* (baidu.com)) {
add_header 'Access-Control-Allow-Origin' '$http_origin';
add_header 'Access-Control-Allow-Credentials' 'true';
}
*.baidu.com来的请求都开放