[Done] Advanced Node and Express - Set up the Environment

I just experienced some incredible serendipity and I think I just found a solution while searching for something totally different.

Add this code to the top of your server.js file and try the tests again:

const cors = require('cors');
app.use(cors());

Please let me know if it works!

Credit to hasnass for the info: Advanced Node and Express Challenges - missing stuff

EDIT: This is working for some but not all of the tests

79 Likes