CORS and js with script type="module"



Hi all,

All files are served correctly from 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?




add crossorigin to requested js