patch CORS

This commit is contained in:
Sorrel Bri 2020-01-18 01:25:52 -08:00
parent 88222bf720
commit baec2baf98

View file

@ -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));