Can't enable CORS on Arduino web server

I can't make requests from react.js page to Arduino server. I'm using WIFININA and tried to enable CORS using client.println("Access-Control-Allow-Origin:*"); but it just doesn't fix the problem.

it should fix it

Well it's not. When I add that line the server says the CORS header is missing. I tried adding multiple repeated lines but then the server replies that multiple "Access-Control-Allow-Origin:*" are not permitted...

ans what can we here do for you? maybe if you have some test sketch we could take a look or even test it?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.