Skip to content

Commit 9f9761c

Browse files
committed
fix: set allowed origin methods to POST, GET, OPTIONS
1 parent 964c7cb commit 9f9761c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/server/server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ const app = express();
4343
app.disable('x-powered-by');
4444

4545
// Enable CORS support
46-
app.use(cors());
46+
app.use(
47+
cors({
48+
methods: ['POST', 'GET', 'OPTIONS']
49+
})
50+
);
4751

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

0 commit comments

Comments
 (0)