joshvince / commuter

The Node.js version of a web service that provides additional data about the London Underground
0 stars 0 forks source link

add middleware to allow cors #21

Closed joshvince closed 7 years ago

joshvince commented 7 years ago

this PR adds a piece of middleware that every request is put through:

it allows CORS. SO question here in case future me gets confused.

Code is courtesy of Sean.