[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(cli): allow any localhost port in CORS config (#93)

authored by

Philippe Serhal and committed by
GitHub
c1e4c12b 22637846

+1 -1
+1 -1
cli/src/server.ts
··· 37 37 } 38 38 39 39 const corsOptions: CorsOptions = { 40 - origin: ['https://npmx.dev', 'http://localhost:3000'], 40 + origin: ['https://npmx.dev', /^http:\/\/localhost:\d+$/], 41 41 methods: ['GET', 'POST', 'DELETE', 'OPTIONS'], 42 42 allowHeaders: ['Content-Type', 'Authorization'], 43 43 }