HTTP request works with cURL but gets CORS response when made in browser with javascript

后端 未结 2 784
眼角桃花
眼角桃花 2021-01-19 15:50

When I access the typeform API via browser using $.get or superagent or request or axios, I get the error No \'Access-Control-Allow-Origin\' header is present on the request

2条回答
  •  孤独总比滥情好
    2021-01-19 16:39

    CORS is enforced client side by your browser. If you are not making the request with a browser CORS is not enforced.

提交回复
热议问题