patch CORS
This commit is contained in:
parent
23daa25ca9
commit
4960a5f60d
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ const app = express();
|
||||||
const allowedOrigin = process.env.REACT_ADDRESS;
|
const allowedOrigin = process.env.REACT_ADDRESS;
|
||||||
const corsOptions = {
|
const corsOptions = {
|
||||||
origin: allowedOrigin,
|
origin: allowedOrigin,
|
||||||
credentials: true
|
credentials: true,
|
||||||
|
methods: "GET,PUT,POST,DELETE"
|
||||||
}
|
}
|
||||||
|
|
||||||
app.options('*', cors(corsOptions));
|
app.options('*', cors(corsOptions));
|
||||||
|
|
Loading…
Reference in a new issue