Install and Set Up Mongoose Not Working

Hi there,

I have been trying to complete this challenge but the test keep failing even though I am sure my code is correct.

When I looked in the console log, I saw the following errors:

GET 404 ()

install-and-set-up-mongoose:1 Failed to load No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access. The response had HTTP status code 404.

Cross-Origin Read Blocking (CORB) blocked cross-origin response with MIME type text/html. See for more details.

So I think there is probably a problem on your end. Let me know if you are able to fix it!

Thanks, Sam

Can you share your code to show us how you set this up?


So all the source code can be found on Glitch:!/mongoose-starter

Obviously MONGO_URI in .env is filled in, but you won’t be able to see it.

Make sure you are starting off with the correct template.

Go back to the introduction page for this curriculum and click that link below to properly setup.

Start this project on Glitch using this link or clone this repository on GitHub! If you use Glitch, remember to save the link to your project somewhere safe!