diff --git a/my-replicate-app/index.js b/my-replicate-app/index.js index 0b39261..bef9ab9 100644 --- a/my-replicate-app/index.js +++ b/my-replicate-app/index.js @@ -29,8 +29,10 @@ app.use(bodyParser.json()); app.use( cors({ - origin: ["http://localhost:3000", "http://localhost:8888", "https://spirographmaker.netlify.app"], + origin: ['http://localhost:3000', 'http://localhost:8888', 'https://spirographmaker.netlify.app'], + methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, + allowedHeaders: 'Content-Type, Authorization', }) );