Accessing FA pro kit icons through CORS #2
Answered
by
sam-19
sam-19
asked this question in
Help & Support
-
Hey, Thank you for the great work! Converting my simple project from Shoelace to Web-Awesome went surprisingly smoothly. However, I'm having trouble accessing my FA pro icons due to CORS violation. When I use the How do I configure access to my pro icons kit so it will work with CORS? Kind regards, |
Beta Was this translation helpful? Give feedback.
Answered by
sam-19
Jun 21, 2024
Replies: 1 comment 4 replies
-
Hi there! Can you verify you've added the target domain to your kit settings in the Font Awesome dashboard? Thanks! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out the reason. One of the icon names had changed from Shoelace and one contained a typo. For some reason this resulted in the below CORS error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://ka-p.fontawesome.com/releases/v6.5.2/svgs/regular/wrong-icon-name.svg?token=XXX. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
After changing the icon names it started to work. No idea why it gave the CORS error, but it seems to be working now. Could it be that some generic error response returned by your server has misconfigured CORS headers?
Sorry for the trouble and thanks for the quick responses!
~Sam