patch CORS
This commit is contained in:
parent
88222bf720
commit
baec2baf98
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