Skip to content

Accessing FA pro kit icons through CORS #2

Answered by sam-19
sam-19 asked this question in Help & Support
Discussion options

You must be logged in to vote

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sam-19
Comment options

@sam-19
Comment options

@claviska
Comment options

@sam-19
Comment options

Answer selected by sam-19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants