web
web copied to clipboard
Access-Control-Allow-Origin for Dev server
Would it be possible to enable this? or create a switch
The server is based on koa, you can add koa middleware to do anything you like. There is also an express to koa converter for express plugins. You can read more about koa here: https://koajs.com/
I created a pull request for the docs that adds an example of how to (mis)use the transform hook to send custom HTTP headers.