About esmodule crossorigin #493
Replies: 0 comments 3 replies
-
This differs from normal scripts where not setting I think that answers your question. @teoli2003 IMO @19Qingfeng is correct that this is not obvious - I had to do a bit of research and it is still possible that I am wrong above. I propose the following fixes might help.
Thoughts? Any other areas missing? Is there a CORS expert we can defer this to, or ask for particular review? |
Beta Was this translation helpful? Give feedback.
-
Hey, guys.I have some questions that I can't find by consulting the MDN documentation. I hope I can get the answers in the community.
It's about some questions about
<script />
, classic script tag has corssorigin attribute, I can understand what they stand for.but for the
<script type="module" />
, When I don't have any configuration about corssorigin, Just getting my server to support cors:Access-Control-Allow-Origin: *
.And then I can get script detailed error on
window.onerror
, It looks like<script crossorigin="anonymous" />
. I want to know what is the difference between the<script type="module" />
and<script crossorigin="anonymous" />
in the case of cors, or can I understand them as the same in a sense?I went through the documents and did not find this part of the explanation. I hope the community can help me. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions