I have put the author into the package.json file and it tells me it’s not correct - odd
I have put a link to the base json file and the index.html file, neither seems to be ok
The server js file downloaded from Github, includes two URLs added to the allowed origins variable, so I added my URL - but still, this doesn’t seem to register and the CORS error still exists.
Is this an issue with the server I am using or an issue with the server js file?
Could you do a little investigation? Do you see the same error in the console that I do?
FWIW, your package.json looks right to me. I’m not sure why that error is there. It may have to do with how the file is being returned, but I think that is above my pay grade.
I might be wrong, but I think it is because you have created a file path that corresponds to the GET path. So when the test calls GET on the API path it is a file path and not what should have been returned from server.js.
The test then calls JSON.parse which causes the error
Uncaught (in promise) SyntaxError: Unexpected token o in JSON at position 1