添加BING_MAP_API_KEY 之后,请求出现{"error":"Access denied"}
Closed this issue · 1 comments
anduinnn commented
anduinnn commented
研究了一下代码,代码里
const referer = "https://www.example.com/path/to/page?query=123";
const hostname = new URL(referer).hostname;
console.log(hostname); // 输出:www.example.com
所以需要在ALLOWED_DOMAINS同时设置该ip地址www.example.com
;
我把他设置成了https://www.example.com/
,并不能完全匹配allowedDomains.includes(domain)