using the run
from Network.Wai.Handler.Warp
function to server rest api
run :: Port -> Application -> IO ()
but while doing post
request, getting an error CORS header ‘Access-Control-Allow-Origin’
.
any idea how to overcome this in servant/haskell