patch CORS

This commit is contained in:
Sorrel Bri 2020-01-18 01:25:52 -08:00 committed by sorrelbri
parent 188cd0b966
commit 891ba5ab2f

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