feat(cors): added cors config
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import cors from "cors";
|
||||
|
||||
const corsConfig = cors({
|
||||
origin: "*",
|
||||
methods: "GET",
|
||||
credentials: true,
|
||||
optionsSuccessStatus: 200,
|
||||
});
|
||||
|
||||
export default corsConfig;
|
||||
Reference in New Issue
Block a user