Skip to content

Commit

Permalink
Merge pull request #590 from highcharts/fix/server-allowed-methods
Browse files Browse the repository at this point in the history
fix/server-allowed-methods
  • Loading branch information
PaulDalek authored Oct 30, 2024
2 parents 964c7cb + 9f9761c commit d61b462
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 d61b462

Please sign in to comment.