Skip to content

Commit d61b462

Browse files
authored
Merge pull request #590 from highcharts/fix/server-allowed-methods
fix/server-allowed-methods
2 parents 964c7cb + 9f9761c commit d61b462

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)