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