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
Unsafe attempt to load URL (SVG) #21
Comments
Since my asset folder is a static resource zip, I'm using utils.setAssetRoot() to set the correct asset path. I have to set the assetRoot as a global variable in VF so that I can use it in my webpack bundle. In my VF page:
And in my webpack entry file:
|
Yes, |
Works! Thanks! |
I was able to work around the issue by changing the paths to /resource/assets.... However I have noticed that some of the styles are being overridden, specifically the font. Until I remove some other .css includes from the head, my font doesn't catch on... |
Not sure what your setup is but here is what I'm doing with the lightning design system zip file as a static resource:
|
Yup looks like I was missing the -vf.css Thanks a lot @rjmah ! |
Glad it worked! |
Hi,
When I'm trying to use the DropdownButton in the SF env, I am getting the following error:
Unsafe attempt to load URL https://MYDOMAIN-dev-ed.my.salesforce.com/assets/icons/utility-sprite/svg/symbols.svg#down from frame with URL https://MYDOMAIN-dev-ed.lightning.force.com/c/main.app. Domains, protocols and ports must match.
Obviously this is a CORS issue. The question is how I fix it in this case?
Thanks.
The text was updated successfully, but these errors were encountered: