Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

/* always triggered

Vlad No The Paver answered on April 26, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


/* always triggered

0

You need to switch the order of route declaration: 

That's because /* will also match /api, and Express doesn't match based on which route matches best, but which route matches first.

Always declare more specific routes before less specific routes.

https://stackoverflow.com/questions/39844670/express-app-get-and-api-cors-issue

Popularity 1/10 Helpfulness 1/10 Language whatever
Tags: whatever
Link to this answer
Share Copy Link
Contributed on Apr 26 2023
Vlad No The Paver
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.