Solved

CORS error when importing font in external CSS file

  • 17 March 2023
  • 1 reply
  • 523 views

Userlevel 2
Badge +6

Hi There,

 

I have to implement corporate branding on a Form, this includes a corporate typeface.

 

Unfortunately I am getting a CORS issue due to domain mismatch:

 

 

The domain of the woff files is the same as the domain serving the custom CSS in the externally linked CSS file in the Style profile.

 

Has anyone been able to work around this limitation?

 

CC: 

@CodiKaji @nazreen_hassan-  

 

Regards,

Ernie

icon

Best answer by ernie_hayter 17 March 2023, 20:16

View original

1 reply

Userlevel 2
Badge +6

I was able to get this working by changing the CORS settings on the Azure Storage account:

 

https://stackoverflow.com/questions/46226602/requested-font-files-from-azure-cdn-being-blocked-by-cors-policy

Reply