Cross-Origin Request Blocked in my C Language API

不羁岁月 提交于 2020-01-02 21:59:23

问题


Please look into this error. Scenario is, we have REST API on Raspberry PI3, when we try to access API from browser side script, we have the following error.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.18.110:7778/AQueLang/log_var_values. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

We already allows Access-Control-Allow-Origin in the header, as the solution website says.

We also write our URL here instead of *, but result are same. The picture is the API Header. So I need something about this. We follow the following links.

https://jonhilton.net/cross-origin-request-blocked/

https://support.tigertech.net/cors

https://www.w3.org/TR/cors/

https://forum.ionicframework.com/t/how-to-fix-getting-cross-origin-request-blocked/17955

来源:https://stackoverflow.com/questions/59553639/cross-origin-request-blocked-in-my-c-language-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!