Announcements

TeamViewer IoT is hiring! Check out the open positions here!

Posted by robo0701
Henagon

How to prevent Response for preflight has invalid HTTP status code 404

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

 

2 Replies
2 Replies
Posted by monkeyman
Electron

Re: How to prevent Response for preflight has invalid HTTP status code 404

did you get a resolution to this ??

Posted by robo0701
Henagon

Re: How to prevent Response for preflight has invalid HTTP status code 404

I dont have no idea. I implemented in Java instead of javascript.