Skip to content

Commit

Permalink
fix: set allowed origin methods to POST, GET, OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuminski committed Oct 30, 2024
1 parent 964c7cb commit 9f9761c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ const app = express();
app.disable('x-powered-by');

// Enable CORS support
app.use(cors());
app.use(
cors({
methods: ['POST', 'GET', 'OPTIONS']
})
);

// Enable parsing of form data (files) with Multer package
const storage = multer.memoryStorage();
Expand Down

0 comments on commit 9f9761c

Please sign in to comment.