knowgoio / knowgo-vehicle-simulator

An interactive multi-platform Connected Car simulator for generating and streaming realistic vehicle telemetry.
https://knowgoio.github.io/knowgo-vehicle-simulator/docs
MIT License
33 stars 7 forks source link

Add CORS support #2

Closed pmundt closed 3 years ago

pmundt commented 3 years ago

The HTTP router currently fails the OPTIONS pre-flight check and returns an unhandled method error. We need to add a CORS middleware to the shelf router in order to enable execution on the local simulator from the OpenAPI documentation.