patch CORS

This commit is contained in:
Sorrel Bri 2020-01-18 01:25:52 -08:00 committed by sorrelbri
parent 23daa25ca9
commit 4960a5f60d

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