The CORS Header 'Access-Control-Allow-Origin' is missing

后端 未结 4 869
自闭症患者
自闭症患者 2020-12-14 11:25

I\'m trying to use webUntis\'(docs) API for a school project. For now I\'m just trying to establish any kind of connection to the API.

var result;
const url          


        
4条回答
  •  渐次进展
    2020-12-14 12:01

    It basically means that this API is not configured to be called from another web page. Cross-Origin refers to making an HTTP request from one domain (origin) to another. This API is meant to be used from a server application. If you need to call it from a web page, you'll need to create a simple proxy server that your web page can call which will make the request to webUntis.

提交回复
热议问题