阿里云OSS配置跨域
报错
Access to fetch at ‘https://cwaiimage.oss-cn-beijing.aliyuncs.com/img/chufang233.png’ from origin ‘http://img.cwrising.top:3000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
意思就是你跨域访问了,需要在阿里云那里进行配置
解决方案
自己看图进行配置,然后就OK了
心得体会
代码能跑,就不要动了😭😭😭😭😭😭