Skip to content

Commit

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

/**Ably Setup */

Expand Down
2 changes: 1 addition & 1 deletion packages/backend/vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 2,
"name": "dicedemo-backend",
"name": "dice-demonstration-backend",
"builds": [
{ "src": "index.ts", "use": "@vercel/node" }
],
Expand Down

0 comments on commit 90e44a6

Please sign in to comment.