web icon indicating copy to clipboard operation
web copied to clipboard

Access-Control-Allow-Origin for Dev server

Open jogibear9988 opened this issue 3 years ago • 2 comments

Would it be possible to enable this? or create a switch

jogibear9988 avatar Dec 14 '21 19:12 jogibear9988

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/

LarsDenBakker avatar Dec 21 '21 20:12 LarsDenBakker

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.

rhashimoto avatar Jan 09 '22 17:01 rhashimoto