We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I git cloned the repo, ran the install scripts for the client and the server, and ran "npm run dev", but got the above error.
npm v 6.0.0 node v9.9.0
The text was updated successfully, but these errors were encountered:
Try adding cors to your server.js file.
npm i cors
// in server.js const cors = require('cors');
const cors = require('cors');
// alter the following app.get() params in server.js app.get('/api/customers', cors() , (req,res,next) => { ... })
app.get('/api/customers', cors() , (req,res,next) => { ... })
Sorry, something went wrong.
No branches or pull requests
I git cloned the repo, ran the install scripts for the client and the server, and ran "npm run dev", but got the above error.
npm v 6.0.0
node v9.9.0
The text was updated successfully, but these errors were encountered: