server {
listen 80;
server_name b.com;
location /{
if ( $http_referer ~* (a.com|b.com|c.com) ) {
Access-Control-Allow-Origin: *
}
}
}
转载于:https://www.cnblogs.com/yanyd/p/5577775.html
server {
listen 80;
server_name b.com;
location /{
if ( $http_referer ~* (a.com|b.com|c.com) ) {
Access-Control-Allow-Origin: *
}
}
}
转载于:https://www.cnblogs.com/yanyd/p/5577775.html