Resolved URL-Shortener Failing All Tests

Hello all,

I’ve been struggling with the URL shortener for a while. It looked like I was passing all test but was getting nothing but fails.

I opened the FCC project page’s console and realized that it was unable to talk to my replit server. I was able to resolve this by moving the app.use(cors()); back up to the top of my script. Has to be above the routes that it affects! Silly mistake, but it could be one that someone else makes, so I just wanted to mention it.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.