Skip to content

Commit

Permalink
cors policy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Avelous committed Feb 11, 2024
1 parent 90e44a6 commit 9b57114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app.use(bodyParser.json({ limit: "30mb" }));
app.use(bodyParser.urlencoded({ limit: "30mb", extended: true }));
app.use(
cors({
origin: "http://localhost:3000",
origin: "*",
}),
);

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/server.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const serverConfig = {
isLocal: false,
localUrl: "http://localhost:6001",
liveUrl: "https://weak-teal-haddock-sari.cyclic.app",
liveUrl: "https://dice-demonstration-backend.vercel.app",
};

export default serverConfig;

0 comments on commit 9b57114

Please sign in to comment.