Code Monkey home page Code Monkey logo

Comments (2)

Sariay avatar Sariay commented on June 30, 2024

下午好!@Asalea

首先,你应该阅读一下又拍云文档的CORS跨域配置一节;然后转到管理后台,找到云储存,找到管理图片的服务,点击配置,配置访问控制模块的CORS 跨域共享 ,点击添加规则,配置允许的域为 *,Method至少选择post和get两项。

更多问题请谷歌跨域访问一词。

from hexo-theme-annie.

Asalea avatar Asalea commented on June 30, 2024

感谢帮助,问题已解决。

主要问题是又拍云对于跨域的请求不会默认添加Access-Control-Allow-Origin,我尝试了添加各种CORS规则,但是没有效果。

现在采用一种暂时的方法:关闭CORS规则并添加重写规则。

步骤大致这样:管理后台 -> 云存储 -> 找到服务 -> 配置 -> 边缘规则 -> 添加规则 -> 功能选择添加HTTP响应头,Header域名为Access-Control-Allow-Origin , Header域值设置为 '*' -> 选择break

from hexo-theme-annie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.