Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.17 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.17 KB

view on npm npm module downloads Build Status Dependency Status js-standard-style

lws-cors

Support for setting Cross-Origin Resource Sharing (CORS) headers to lws. For usage instructions, see here.

Adds the following options to lws.

--cors.origin                  `Access-Control-Allow-Origin` value. Default is the request Origin header.
--cors.allow-methods           `Access-Control-Allow-Methods` value. Default is
                               "GET,HEAD,PUT,POST,DELETE,PATCH"
--cors.credentials             Adds `Access-Control-Allow-Credentials` header.

© 2016-20 Lloyd Brookes <[email protected]>.