extend the res.writeHead and play around with the Access-Control headers
res.writeHead(200, { 'Content-Type': 'text/plain', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept' });
https://developer.mozilla.org/de/docs/Web/HTTP/CORS#The_HTTP_response_headers
Let us know, if this works for you.
Look like I had missed to hit Post reply
Post reply
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
extend the res.writeHead and play around with the Access-Control headers
https://developer.mozilla.org/de/docs/Web/HTTP/CORS#The_HTTP_response_headers
Let us know, if this works for you.
Look like I had missed to hit
Post reply