CORS error Build an RPG Creature Search App Project

Tell us what’s happening:

Hi everyone,

I’m having trouble getting my progress to save . I’m working on the RPG Creature Search App project, but after I finish the challenge in the in-browser editor and try to submit/save it, the site doesn’t record my progress. the challenge still shows as incomplete and I can’t move on to the next project because this is my last project to get the JS certification.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0

Challenge Information:

Build an RPG Creature Search App Project - Build an RPG Creature Search App

If you open the browser console, do you get similar errors as this?

There’s a whole bunch of errors in the console..
[Deprecation] -ms-high-contrast is in the process of being deprecated. Please see Deprecating support for -ms-high-contrast and -ms-high-contrast-adjust - Microsoft Edge Blog for tips on updating to the new Forced Colors Mode standard.
failed-updates-epic.js:92 progress updates processed where possible
/learn/full-stack-developer/:1 Access to fetch at ‘https://api.freecodecamp.org/modern-challenge-completed’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/modern-challenge-completed:1 Failed to load resource: net::ERR_FAILED
/learn/full-stack-developer/:1 Access to fetch at ‘https://api.freecodecamp.org/modern-challenge-completed’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/modern-challenge-completed:1 Failed to load resource: net::ERR_FAILED
/learn/full-stack-developer/:1 Access to fetch at ‘https://api.freecodecamp.org/modern-challenge-completed’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/modern-challenge-completed:1 Failed to load resource: net::ERR_FAILED
/learn/full-stack-developer/:1 Access to fetch at ‘https://api.freecodecamp.org/modern-challenge-completed’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/modern-challenge-completed:1 Failed to load resource: net::ERR_FAILED
/learn/full-stack-developer/:1 Access to fetch at ‘https://api.freecodecamp.org/modern-challenge-completed’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/modern-challenge-completed:1 Failed to load resource: net::ERR_FAILED
195The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
babel.js:105940 A plugin named “loopProtection” is already registered, it will be overridden
qqe @ babel.js:105940
babel.js:105940 A plugin named “testLoopProtection” is already registered, it will be overridden
qqe @ babel.js:105940
build-an-rpg-creature-search-app:1 Access to fetch at ‘https://api.freecodecamp.org/save-challenge’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/save-challenge:1 Failed to load resource: net::ERR_FAILED
build-an-rpg-creature-search-app:1 Access to fetch at ‘https://api.freecodecamp.org/save-challenge’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/save-challenge:1 Failed to load resource: net::ERR_FAILED
rpg-creature-api.freecodecamp.rocks/api/creature/red:1 Failed to load resource: the server responded with a status of 404 ()
rpg-creature-api.freecodecamp.rocks/api/creature/red:1 Failed to load resource: the server responded with a status of 404 ()
rpg-creature-api.freecodecamp.rocks/api/creature/b30c7e:1 Failed to load resource: the server responded with a status of 404 ()
rpg-creature-api.freecodecamp.rocks/api/creature/b30c7e:1 Failed to load resource: the server responded with a status of 404 ()
build-an-rpg-creature-search-app:1 Access to fetch at ‘https://api.freecodecamp.org/save-challenge’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/save-challenge:1 Failed to load resource: net::ERR_FAILED
build-an-rpg-creature-search-app:1 Access to fetch at ‘https://api.freecodecamp.org/save-challenge’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/save-challenge:1 Failed to load resource: net::ERR_FAILED
build-an-rpg-creature-search-app:1 Access to fetch at ‘https://api.freecodecamp.org/save-challenge’ from origin ‘https://www.freecodecamp.org’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
api.freecodecamp.org/save-challenge:1 Failed to load resource: net::ERR_FAILED
[NEW] Explain Console errors by using Copilot in Edge: click

     to explain an error. 
    Learn more
    Don't show again

build-an-rpg-creature-search-app:1 [Deprecation] -ms-high-contrast is in the process of being deprecated. Please see Deprecating support for -ms-high-contrast and -ms-high-contrast-adjust - Microsoft Edge Blog for tips on updating to the new Forced Colors Mode standard.
VM43:12 GET https://rpg-creature-api.freecodecamp.rocks/api/creature/red 404 (Not Found)
eval @ VM43:12
#a @ dom-test-evaluator.js:2
await in #a
handleMessage @ dom-test-evaluator.js:2
onmessage @ dom-test-evaluator.js:2
about:srcdoc:225 GET https://rpg-creature-api.freecodecamp.rocks/api/creature/red 404 (Not Found)
_callee$ @ about:srcdoc:225
tryCatch @ about:srcdoc:163
(anonymous) @ about:srcdoc:163
(anonymous) @ about:srcdoc:163
asyncGeneratorStep @ about:srcdoc:164
_next @ about:srcdoc:165
(anonymous) @ about:srcdoc:165
(anonymous) @ about:srcdoc:165
_fetchCreature @ about:srcdoc:283
fetchCreature @ about:srcdoc:207
(anonymous) @ about:srcdoc:286
eval @ VM43:10
#a @ dom-test-evaluator.js:2
await in #a
handleMessage @ dom-test-evaluator.js:2
onmessage @ dom-test-evaluator.js:2
about:srcdoc:225 GET https://rpg-creature-api.freecodecamp.rocks/api/creature/80f70d 404 (Not Found)
_callee$ @ about:srcdoc:225
tryCatch @ about:srcdoc:163
(anonymous) @ about:srcdoc:163
(anonymous) @ about:srcdoc:163
asyncGeneratorStep @ about:srcdoc:164
_next @ about:srcdoc:165
(anonymous) @ about:srcdoc:165
(anonymous) @ about:srcdoc:165
fetchCreature @ about:srcdoc:207
(anonymous) @ about:srcdoc:286
eval @ VM48:13
#a @ dom-test-evaluator.js:2
await in #a
handleMessage @ dom-test-evaluator.js:2
onmessage @ dom-test-evaluator.js:2
VM48:15 GET https://rpg-creature-api.freecodecamp.rocks/api/creature/80f70d 404 (Not Found)

so you are getting those errors

the team is investigating, it is not possible to pass the challenge at this time

Thanks for the prompt response

1 Like

I am also getting the CORS error, in the last project

1 Like