UNPKG

servatron

Version:

Create a handler that can server static files using the NodeJS http/http2 modules, or use the inbuilt cli server to quickly run a web server.

7 lines (6 loc) 168 B
function generateAntiCorsHeaders(headers) { return { 'Access-Control-Allow-Origin': headers.origin || '*', }; } export default generateAntiCorsHeaders;