Skip to content

proxy error #3

Description

@bewbs92

Once i run the project n click on fb/Insta login, it throws an error "Error occured while trying to proxy to: localhost:3000/auth/facebook"

in the console "Proxy error: Could not proxy request /user from localhost:3000 to http://localhost:5000/."

My package.json ..
"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "server": "nodemon server/index.js", "dev":"concurrently --kill-others \"npm run start\" \"npm run server\" " }, "proxy": "http://localhost:5000/",

setupProxy.js

`const proxy = require("http-proxy-middleware");

module.exports = function(app) {
app.use(proxy('/auth', { target: 'http://localhost:5000/' }));
};

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions