Timestamp Microservice - Unknown reason for failing all tests

Tell us what’s happening:
None of the FCC tests are passing even though the responses are identical to the example app. It appears the api is not working for the tests. Not sure why when I am able to call it from the browser and postman. Any help would be appreciated.

Your project link(s):

Live server:

Source code:

Your browser information:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0

Back End Development and APIs Projects - Timestamp Microservice

Link to the challenge:

The first thing you should always check when your tests do not pass is your browser’s console. Open the browser console and click the button to submit your url and you will see the issue listed as the first error.

Thank you so much for the quick reply. I did not know it was possible to check test errors in the console. Looks like its a CORs issue.

It is a CORS issue. You are currently only allowing http://localhost:3000 to submit requests. You will also need to allow freecodecamp.org, so the tests can submit requests to your project.

1 Like

All tests pass now. Thanks again for the help!