0
...
map $http_origin $corsHost {
default '-miss-me-wit-dis-yo-';
hostnames;
.namethatmaps.net $http_origin;
http://localhost:5555 # working sample
localhost $http_origin; # sample 1
.localhost:555.+ $http_origin; # sample 2
}
總是失敗,這個測試值$http_origin = http://localhost:5555
如何在NGINX config map指令中映射到localhost:port?
有沒有模式通配符本地主機?