CORS issue with Survey project

CORS issue with Survey project
0.0 0

#1

I’ve been working on the Survey project for the first certification, and I loaded it up today to get this error in the F12 console:

Access to Font at ‘https://static.codepen.io/assets/telefon/bold/af889c53-1ee3-4868-8fdc-2b310d587b50-3-b7a87e0fbd213943fae0c0ef5985635dd43fa9c24876b2725127a13ccaf4ab6a.woff’ from origin ‘codepen’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘codepen’ is therefore not allowed access.

It worked fine yesterday and I didn’t change anything except for add a group of radio buttons. All of my other pens are still working too.

Here’s the pen I’m having problems with:

Can anyone tell me what I’m doing wrong? I’ve searched this forum and google and all of the answers seem to involve some settings on your server, which I don’t have control over.


#2

Now it’s working, but only because my codepen is failing to load the test scripts:

Loading failed for the with source “https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js”.

Is there a bug with the project test suite?


#3

I don’t know. Those cors fonts issues are a common problem with CP and have nothing to do with you - you can get them on an empty pen.

I did notice that you were loading that test script twice - once in the HTML and once in the settings. I don’t think that was the problem. Maybe it was just a glitch.


#4

Hmm, okay. Well I guess it’s working now. Thanks!