Skip to content

Commit 072cbc0

Browse files
authored
fix: enable cors on all
1 parent bf40b5b commit 072cbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const limiter = rateLimit({
2222
app.use(limiter);
2323
app.use(express.json());
2424
app.use(morgan("dev"));
25-
app.use(cors(["http://localhost:5173", "https://coverwrite.vercel.app"]));
25+
app.use(cors());
2626

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

0 commit comments

Comments
 (0)