CareyWang / MyUrls

Your Own URL Shortener
MIT License
304 stars 126 forks source link

已经配置了正确的跨域,浏览器F12看还是报错 #37

Closed Faramitas closed 9 months ago

Faramitas commented 9 months ago
          @cs-star Access to XMLHttpRequest at 'https://zz01.ml/short' from origin 'https://sub.aa01.ml' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

反代未正确配置跨域

Originally posted by @CareyWang in https://github.com/CareyWang/MyUrls/issues/20#issuecomment-1089879672

65e08baaf376318d4c9a989dea010500 1695649276533


找到原因了,sub-web短链接API后面一定要加上/short!!!!

bfmen commented 8 months ago

这个解决了跨域问题 sub-web短链接API后面一定要加上/short

518512 commented 1 week ago

/short

能否麻烦截图看一下,我NPM 设置后 还是不行