Skip to content

Commit

Permalink
maintain: allow all cors
Browse files Browse the repository at this point in the history
  • Loading branch information
shabane committed Nov 4, 2024
1 parent 2f1621e commit d5dcad7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ const cors = require("cors");
app = express();

// Installed middleWare
app.use(cors({
credentials: true,
origin: ["localhost:8080"],
}));
app.use(cors());
app.use(express.json());
app.use(cookieParser());

Expand Down

0 comments on commit d5dcad7

Please sign in to comment.