Skuid Error Accessing Resources due to CORS

  • 1
  • Problem
  • Updated 2 years ago
  • Not a Problem
Receiving the following Error now when loading pages. This is causing CSS issues on themes. :

Access to Font at 'https://skuid.cs12.visual.force.com/resource/skuid__Fonts/opensans/Italic/OpenSans-Italic.woff2?v=1....' from origin 'https://c.cs12.visual.force.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://c.cs12.visual.force.com' is therefore not allowed access.

Has anyone else seen this in the past few days? 
Photo of rensley

rensley

  • 316 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,352 Points 10k badge 2x thumb
Hi Ray, we are looking into this, and will reach out when we have more information. 
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,352 Points 10k badge 2x thumb
It sounds like this may be something internal in Salesforce, but it would take more investigation to pin down what had changed. It's also possible that this is related to a known issue with Themes, in which some of the theme files aren't being found, or URLs are being misconstructed. References to external fonts like Google's ever-popular OpenSans may end up with an incorrect URL. Our developers are investigating this potential issue. 
Photo of Gregg

Gregg

  • 60 Points
Seeing the same thing.  It has been a couple months since your last response Mark.  What did your developers discover?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,352 Points 10k badge 2x thumb
Hello Gregg and Arne,

Which versions of Skuid are you each working with? I believe Ray's issue had to do with the Skuid namespace being present in one URL and missing in the other, thus making it look like there was a Cross-Origin issue. This should have been resolved as of the Q2 point release, but if you're running into the same error, it may not necessarily be caused by the same underlying issue. 
Photo of Arne-Per Heurberg

Arne-Per Heurberg

  • 3,046 Points 3k badge 2x thumb
Thanks Mark. I am on the latest release. My issue was not for font. It was for an APEX Rest Resource. I will check namespace.
Photo of Praveen Pannala

Praveen Pannala

  • 654 Points 500 badge 2x thumb
I am also running into same issue.

I am seeing below messages in console, i am seeing this messages after i upgraded my version to 11.0.1 to 11.0.3 version.

Access to Font at 'https://cbg--devr1.cs52.my.salesforce.com/visualforce/session?url=https%3A%2F%2Fcbg--devr1--c.cs52.v...' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
UI?page=NG_TransActLandingPage:1 Access to Font at 'https://cbg--devr1--c.cs52.visual.force.com/resource/Roboto_V2/Fonts/Roboto-Medium.ttf' from origin 'https://cbg--devr1--skuid.cs52.visual.force.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://cbg--devr1--skuid.cs52.visual.force.com' is therefore not allowed access.
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 12,352 Points 10k badge 2x thumb
Hello Praveen, have you made sure to update your out of date themes since updating?
Photo of Praveen Pannala

Praveen Pannala

  • 654 Points 500 badge 2x thumb
I did update the themes and still seeing same issue.
Photo of Praveen Pannala

Praveen Pannala

  • 654 Points 500 badge 2x thumb
@Mark, do you have any other suggestions on this, this is very critical for us because all our pages are loading with default font.
Photo of Praveen Pannala

Praveen Pannala

  • 654 Points 500 badge 2x thumb
I true appreciate the help from SKUID. Skuid suggested to use google fonts instead of loading the fonts from static resource and it fixed the issue.

But being not able to load the fonts from css static resource could be an issue, hope skuid will fix it.
Photo of Stephen Sells

Stephen Sells, Alum

  • 17,326 Points 10k badge 2x thumb
Official Response
Hello Skuid Community ~

Thank you for your thoughtful suggestion! Skuid listened to your concern and has implemented your idea in the new Skuid Version Millau (11.0.5) release which is now available on the Skuid Releases page.

As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade.
Photo of Jack Sanford

Jack Sanford, Champion

  • 10,090 Points 10k badge 2x thumb
I'm getting this error in 11.1.13 on Salesforce Spring'18

Access to Font at 'https://cs66.salesforce.com/visualforce/session?url=https%3A%2F%2Fskuid.cs66.visual.force.com%2Freso...' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
Photo of Jack Sanford

Jack Sanford, Champion

  • 10,090 Points 10k badge 2x thumb
Per a suggestion above, I added a link to my google web font as an external CSS resource but the error is still there. 
(Edited)