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:
timestamp-microservice.fly.dev
Source code:
Your browser information: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0
Challenge:
Back End Development and APIs Projects - Timestamp Microservice
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.