I am working on a small local webpage to switch my digital switches by hand.
As the rest api documentation says I sent this request:
Which my browser quickly blocks, since the data that is returned does not have the correct CORS headers. I can send a header from the client, like this:
xhttp.setRequestHeader("Access-Control-Allow-Origin", "*");
But even then the server does not reply with the correct headers, and the request is still bocked.
In the settings of the shelly wabpage I cannot find any information on how to turn on the correct CORS headers.