Skip to content

Commit

Permalink
fix: enable cors on all
Browse files Browse the repository at this point in the history
  • Loading branch information
Judge-Paul authored Feb 29, 2024
1 parent bf40b5b commit 072cbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const limiter = rateLimit({
app.use(limiter);
app.use(express.json());
app.use(morgan("dev"));
app.use(cors(["http://localhost:5173", "https://coverwrite.vercel.app"]));
app.use(cors());

function validateReferer(req, res, next) {
const allowedReferer = "https://coverwrite.vercel.app";
Expand Down

0 comments on commit 072cbc0

Please sign in to comment.