问题
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