Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS不支持跨域报错 #103

Open
ldwonday opened this issue Dec 6, 2024 · 1 comment
Open

CSS不支持跨域报错 #103

ldwonday opened this issue Dec 6, 2024 · 1 comment

Comments

@ldwonday
Copy link

ldwonday commented Dec 6, 2024

image

@fantasticsoul
Copy link
Collaborator

fantasticsoul commented Dec 12, 2024

现阶段可通过 (hook.beforeAppendAssetNode](https://github.com/Tencent/hel/blob/main/packages/hel-micro-core/index.d.ts)解决

preFetchLib('xxx', {
   hook: {
       beforeAppendAssetNode({el}){
            el.setAttribute("crossOrigin",'Anonymous');
       }
   }
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants