CORS and js with script type="module"

nodejs

#1

Hi all,

All files are served correctly from c9.io but problems starts when I include script with module type .
I can open it if I put directly link to it in browser but if its requested by my website it reports error:
has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. in browser console.

Any thoughts?

Regards,

Pawel


#2

add crossorigin to requested js