开发者社区 问答 正文

No 'Access-Control-Allow-Origin' header is presen

我在使用vue向阿里云上传文件时,遇到 Access to XMLHttpRequest at xxxxxxxx from origin 'http://localhost:8080' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. 这样的问题? 我也在阿里云设置了跨域设置,但是问题一直存在?

展开
收起
石角头 2020-12-17 13:39:30 1247 分享 版权
1 条回答
写回答
取消 提交回答
  • 参考下这个?https://yq.aliyun.com/articles/551109?spm=5176.11065265.1996646101.searchclickresult.3e2f49412tEB0b

    2021-03-02 10:19:39
    赞同 展开评论
问答分类:
问答地址: