larskuhtz / wai-cors

A Haskell implementation of Cross-Origin resource sharing (CORS) for Wai
MIT License
26 stars 13 forks source link

Create ServantWai.hs Example #12

Closed atcol closed 7 years ago

atcol commented 7 years ago

It was hard to find how to use wai-cors with Servant because I wasn't able to find an example, so I wrote one. Most "documentation" for this scenario was actually in the form of comments on an issue for Servant's project. I hope this makes things a little easier for others.

atcol commented 7 years ago

Closing as I need to make a few changes.