use response.writeHead() and write out the CORS header that way.
I do it in this code - https://github.com/SpenceKonde/AzzyProjeÂcts/blob/master/Animate/Version9.js
Great way! It's works! Thanks all by your support.
@Bunny 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.
use response.writeHead() and write out the CORS header that way.
I do it in this code - https://github.com/SpenceKonde/AzzyProjeÂcts/blob/master/Animate/Version9.js