How to prevent Response for preflight has invalid HTTP status code 404
robo0701
Posts: 2
I made the following sources, but I got an error.
How can I solve it?
var request = new XMLHttpRequest();
request.open("GET", url, true);
request.setRequestHeader("Authorization", "Bearer 2687132-xxxxxxxx");
request.send();
----------------------------------------------------------------------------------------------------------------------------------------
XMLHttpRequest cannot load https://webapi.teamviewer.com/api/xxxx
Response for preflight has invalid HTTP status code 404
0
Comments
-
did you get a resolution to this ??
0 -
I dont have no idea. I implemented in Java instead of javascript.
0