Closed ansonl closed 1 year ago
Turns out it was Chrome blocking private network requests by default now. It can be turned off at chrome://flags/#block-insecure-private-network-requests
.
I also added the following headers to JHEADER and HEADER variables in case other clients have issues
"Access-Control-Allow-Private-Network: true\r\n" \
"Access-Control-Allow-Origin: *\r\n" \
"Access-Control-Allow-Credentials: true\r\n" \
Hi,
Is there a way to add CORS request headers to allow the webcam to a embedded on another page? I tried
server.sendHeader("Access-Control-Allow-Origin", "*");
andserver.enableCrossOrigin(true);
but it doesn't seem to be sending the correct headers because the code currently uses the WifiClient client object to send data and I can't find a premade way to change the WifiClient header.