{"_id":"@remix-run/cors-middleware","_rev":"12-3b1f93ead4079f935f666844c3c8c9d0","name":"@remix-run/cors-middleware","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.0":{"name":"@remix-run/cors-middleware","version":"0.0.0","license":"MIT","_id":"@remix-run/cors-middleware@0.0.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"c84d48845f28407e6e966d5b5562d49440ba91ba","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.0.0.tgz","fileCount":2,"integrity":"sha512-LRyZp5V7eXdL6lnKMExeIMKZfDK8paTgxr+9b3CUQoPmQwZZTV/uDW4lEKT2NyxowfgnFip2PZU1vmpV47Upfw==","signatures":[{"sig":"MEUCIQCHFThce98T/kjUjMu5haH2AfKj40KILYtNVmG66y44XQIgTREGs3zzDwCTx4dkd31s6m6spAgU1XlcGB7xYI2Ttxo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":477},"_npmUser":{"name":"mjackson","email":"mjijackson+npm@gmail.com"},"repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.10.1","description":"Placeholder package for Remix CI/OIDC setup","directories":{},"_nodeVersion":"25.7.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.0.0_1773201688870_0.734694239129644","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@remix-run/cors-middleware","version":"0.1.0","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.0","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"428fa68174e7cd35162676d71bce4e4539adf976","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.0.tgz","fileCount":11,"integrity":"sha512-x5nyxDhWEOnznqetDhtj5WYoHrKpbiZ8K6BCGQ2+DFjLYHoyWCayciUNrqOVSIWc5XdV6KlKHcg1TyQvW/cS4w==","signatures":[{"sig":"MEUCIH4KEYOtWNMNSEYXivXvmA7xQs86JP1NgHiFiX//jVxoAiEAoe/S++o7BoZFYni4UoSm94VuZzoRy54+Vip9yzZWisQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30982},"type":"module","_from":"file:remix-run-cors-middleware-0.1.0.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"node --test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/2e3a13f6d8ec21f33d4b37769419d475/remix-run-cors-middleware-0.1.0.tgz","_integrity":"sha512-x5nyxDhWEOnznqetDhtj5WYoHrKpbiZ8K6BCGQ2+DFjLYHoyWCayciUNrqOVSIWc5XdV6KlKHcg1TyQvW/cS4w==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.9.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@remix-run/headers":"^0.19.0","@remix-run/fetch-router":"^0.18.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/headers":"0.19.0","@remix-run/fetch-router":"0.18.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.0_1774479841107_0.5781378272606363","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@remix-run/cors-middleware","version":"0.1.1","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.1","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"59d5aafccecca1ff850023a1a8e6aec50fbfbc36","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.1.tgz","fileCount":11,"integrity":"sha512-yqdJq5p1RGJS29aMfNAidx76qPIU2JNYq1fBLbOcO2RDSzwddNYby829Cd3UVEPlhopxNNpAIrE+BIC6e5q7eg==","signatures":[{"sig":"MEQCICyk6x3iQgUxJe0CTzeTJ58dyKat+vvZ+gAyFxpj3FakAiBunWMW/ESeSmnC1TUarsuNQgn7Fd5/2WuEYjCzQYYT1A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31047},"type":"module","_from":"file:remix-run-cors-middleware-0.1.1.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/960f1ac8ba988041f0a8da7320c35105/remix-run-cors-middleware-0.1.1.tgz","_integrity":"sha512-yqdJq5p1RGJS29aMfNAidx76qPIU2JNYq1fBLbOcO2RDSzwddNYby829Cd3UVEPlhopxNNpAIrE+BIC6e5q7eg==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.12.1","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@remix-run/headers":"^0.19.0","@remix-run/fetch-router":"^0.18.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.1.0","@remix-run/assert":"0.1.0","@remix-run/headers":"0.19.0","@remix-run/fetch-router":"0.18.1","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.1_1776904668816_0.23991170143019613","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@remix-run/cors-middleware","version":"0.1.2","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.2","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"0360a4a98d47f48799bb0c2b6c57b5c200d600f6","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.2.tgz","fileCount":11,"integrity":"sha512-+tyo+npF+6szzVorrApp0Ilx+UZUdHlSTu5HJG/Nh1zw/gavWEeMtBw9ZWEWz8EhZZ03vVYnTvlEUW5GRhW3TA==","signatures":[{"sig":"MEYCIQCGQSu9gkdPdrw6ayUDEYbA8Xitv74t2bwHP2baMJGTAwIhAMEVyGKoab/EP4fM92noiVQ/XQ8dbrukXd+vb+w6pa7l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31089},"type":"module","_from":"file:remix-run-cors-middleware-0.1.2.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/52f703569f8709a8a98d85bc18dccbdc/remix-run-cors-middleware-0.1.2.tgz","_integrity":"sha512-+tyo+npF+6szzVorrApp0Ilx+UZUdHlSTu5HJG/Nh1zw/gavWEeMtBw9ZWEWz8EhZZ03vVYnTvlEUW5GRhW3TA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.11.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.14.1","dependencies":{"@remix-run/headers":"^0.19.0","@remix-run/fetch-router":"^0.18.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.3.0","@remix-run/assert":"0.2.0","@remix-run/headers":"0.19.0","@remix-run/fetch-router":"0.18.2","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.2_1777576293309_0.5253803854275871","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@remix-run/cors-middleware","version":"0.1.3","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.3","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"a51522bab7591bc90fc5d1de726a4855070b955f","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.3.tgz","fileCount":11,"integrity":"sha512-+xEZT4UpbDPm4MHYwg4nF+7sJfdXeBrcIC3UOGGpjgvWu2c7IJ0r76FIM0BrkahMRqh0XGvItiWQR1S2O2nBNg==","signatures":[{"sig":"MEQCIG2Rf17uixJYuptyK6rI26lYNYTMgs4BciV1YPXxI+38AiBGkg2IS6ye2Bp5WwYiC4j2KFMI+KXgTR/1e5PusGSSrg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31083},"type":"module","_from":"file:remix-run-cors-middleware-0.1.3.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/1ee296bce312eff72dc0dc2006ffa24b/remix-run-cors-middleware-0.1.3.tgz","_integrity":"sha512-+xEZT4UpbDPm4MHYwg4nF+7sJfdXeBrcIC3UOGGpjgvWu2c7IJ0r76FIM0BrkahMRqh0XGvItiWQR1S2O2nBNg==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.12.1","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@remix-run/headers":"^0.20.0","@remix-run/fetch-router":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.0","@remix-run/assert":"0.2.0","@remix-run/headers":"0.20.0","@remix-run/fetch-router":"0.19.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.3_1779247305374_0.5391539346446528","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@remix-run/cors-middleware","version":"0.1.4","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.4","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"05d2c22517c94bb2bc627bb13fad0ad90bd9d2f6","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.4.tgz","fileCount":11,"integrity":"sha512-4l1jS8vx3EAzLhxPXp8bv1UVdWBoOJVBrV2/TqzTGGOjxhYRNLGImB/g1TD7fBsN4k2cen40lhFsqGLSZuHE9g==","signatures":[{"sig":"MEUCIDbuyIuWmkM4QHA/C5SR9lNOvkW+BjwiTIgfn2Ot0BPeAiEA3lCtsnVVh6/+LVO/ZQDPTOjUvTJNGax4kZ5ZhZ3c9U0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31083},"type":"module","_from":"file:remix-run-cors-middleware-0.1.4.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/6860b99a0eb77a802ada01cdcfc705f2/remix-run-cors-middleware-0.1.4.tgz","_integrity":"sha512-4l1jS8vx3EAzLhxPXp8bv1UVdWBoOJVBrV2/TqzTGGOjxhYRNLGImB/g1TD7fBsN4k2cen40lhFsqGLSZuHE9g==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.12.1","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.15.0","dependencies":{"@remix-run/headers":"^0.21.0","@remix-run/fetch-router":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.1","@remix-run/assert":"0.2.1","@remix-run/headers":"0.21.0","@remix-run/fetch-router":"0.19.1","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.4_1779308273120_0.2753171645739987","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@remix-run/cors-middleware","version":"0.1.5","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.5","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"ecf796025eefe2928b0f7c467039e3630b9906d3","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.5.tgz","fileCount":11,"integrity":"sha512-0y5sAZScPTXgR1fFMGU+WYHAV9MBUAVLwOfj5s2OaRcLqEDGJv2EeUu6I/quLFWAqbZTBEoL33qeYUC9DFeQYg==","signatures":[{"sig":"MEUCIEl9t6flp93Ha4zYp6WxQn0Z/eY2/FoUpr6KcL8fgadDAiEA2T/Ars3lGlId9ZFReLCkd7bfNkHgrKeX3CQuk4ht/4o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31093},"type":"module","_from":"file:remix-run-cors-middleware-0.1.5.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/d7e372d6e85c1ad6bcd2aacbc92f5578/remix-run-cors-middleware-0.1.5.tgz","_integrity":"sha512-0y5sAZScPTXgR1fFMGU+WYHAV9MBUAVLwOfj5s2OaRcLqEDGJv2EeUu6I/quLFWAqbZTBEoL33qeYUC9DFeQYg==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.13.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@remix-run/headers":"^0.21.1","@remix-run/fetch-router":"^0.19.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.4.2","@remix-run/assert":"0.2.1","@remix-run/headers":"0.21.1","@remix-run/fetch-router":"0.19.2","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.5_1780078625886_0.507615470546489","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@remix-run/cors-middleware","version":"0.1.6","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.6","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"45c6dddba3f329fa3cc7084b95c6aca849ddf3a9","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.6.tgz","fileCount":11,"integrity":"sha512-n4+sL7ePUhtWKrTjSfjs37sgz228cZPQbSyOEPy6b8nGhX8cRDFYqkF3M9BSelxoP4sWfIQZTaE1LTGAemHrrA==","signatures":[{"sig":"MEYCIQDUHTZD3484em49b/0qtlwydbifOvOq4CSdWBRNeIEWegIhAPGrr5GWhPTSsyh5Pm+Z9CY7IgP3TGLY9iG/awTK3xqK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31093},"type":"module","_from":"file:remix-run-cors-middleware-0.1.6.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/f7d90fda5db9ad42080ecb542e086401/remix-run-cors-middleware-0.1.6.tgz","_integrity":"sha512-n4+sL7ePUhtWKrTjSfjs37sgz228cZPQbSyOEPy6b8nGhX8cRDFYqkF3M9BSelxoP4sWfIQZTaE1LTGAemHrrA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.13.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@remix-run/headers":"^0.21.1","@remix-run/fetch-router":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.5.0","@remix-run/assert":"0.3.0","@remix-run/headers":"0.21.1","@remix-run/fetch-router":"0.20.0","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.6_1780683934253_0.23564586356025008","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@remix-run/cors-middleware","version":"0.1.7","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.7","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"4a41fec1123112284f0d34eddea4db6c5785c2fd","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.7.tgz","fileCount":11,"integrity":"sha512-zbjwCFDwtHDSjyt6sgVVPkFiFfSkmkYPT74nrHClbF+pZx1ra+q93Rpcthbok0cv4IH1f0cagLbf8Jh+IEWNwA==","signatures":[{"sig":"MEUCIQCYEcfrUz5eYVXtyuz0Doa3pf2/mmzQezVCDPiQ/LdQfAIgGSdc2s6TNngI+3iTji6GLOSMMUGsBmb9awyCxatSTm8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31093},"type":"module","_from":"file:remix-run-cors-middleware-0.1.7.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix-test","build":"tsgo -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix-test","typecheck":"tsgo --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/5b52e2036ff9aceae577976057098f90/remix-run-cors-middleware-0.1.7.tgz","_integrity":"sha512-zbjwCFDwtHDSjyt6sgVVPkFiFfSkmkYPT74nrHClbF+pZx1ra+q93Rpcthbok0cv4IH1f0cagLbf8Jh+IEWNwA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.13.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.17.0","dependencies":{"@remix-run/headers":"^0.21.1","@remix-run/fetch-router":"^0.20.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^24.6.0","@remix-run/test":"0.5.0","@remix-run/assert":"0.3.0","@remix-run/headers":"0.21.1","@remix-run/fetch-router":"0.20.1","@typescript/native-preview":"7.0.0-dev.20251125.1"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.7_1782932545826_0.633581010475011","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@remix-run/cors-middleware","version":"0.1.8","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.8","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"124d1fefcc93fdce184b1ae2b229dd6a6294835a","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.8.tgz","fileCount":11,"integrity":"sha512-Vhgtvrbafl1ng8tGmoYKNZ0nxa6vDtNKR2QwLbrW/xwjprTcwkJPSP2IiyQI+75HTzG5zWgJ/Z6OMO+iKdBjuQ==","signatures":[{"sig":"MEUCIQCimcFr/NfGB0el5PcFk0F2nw0ak0va/HaQ1jwME3DOwwIgel8rsOuPrs5s1rrcWsX8kT1dShevfG3BiQJiGyeANec=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31061},"type":"module","_from":"file:remix-run-cors-middleware-0.1.8.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/feb45d3f5e704bbee031a7f3d973b4af/remix-run-cors-middleware-0.1.8.tgz","_integrity":"sha512-Vhgtvrbafl1ng8tGmoYKNZ0nxa6vDtNKR2QwLbrW/xwjprTcwkJPSP2IiyQI+75HTzG5zWgJ/Z6OMO+iKdBjuQ==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.16.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.18.0","dependencies":{"@remix-run/headers":"^0.21.1","@remix-run/fetch-router":"^0.21.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.0","@remix-run/assert":"0.3.0","@remix-run/headers":"0.21.1","@remix-run/fetch-router":"0.21.0"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.8_1786666421276_0.5186208033836031","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@remix-run/cors-middleware","version":"0.1.9","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","_id":"@remix-run/cors-middleware@0.1.9","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"6fc80685ad4804e60345373ae97ab0f1e60e1103","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.1.9.tgz","fileCount":11,"integrity":"sha512-zx0WY9O5Ko88X/Bm2DTslSm0n6o6+Ixmlq8bfbLAcVwOqcHPif9DdgrasbJPooe+geN9+HZ0qfmLRBI7wDuz3A==","signatures":[{"sig":"MEUCIQCLjfu65eBorxg0lUOgG5I4LhH+iXw0/eFY/J0j4Yc4LQIgGTAcaE2pHCyNYeSZRyQIrlYHnI039REYvxD+vBqog2Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCNXX871pVVS9qkhYDOvJ8Q6Svx76/GezFW1pzf6wCAaAIhALvajSho4EH0z8RklXoBLCRq4yoL4BPXZiIiJWHYoxYw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.1.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31061},"type":"module","_from":"file:/tmp/remix-publish-cors-middleware-maWuQV/remix-run-cors-middleware-0.1.9.tgz","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"_resolved":"/tmp/remix-publish-cors-middleware-maWuQV/remix-run-cors-middleware-0.1.9.tgz","_integrity":"sha512-zx0WY9O5Ko88X/Bm2DTslSm0n6o6+Ixmlq8bfbLAcVwOqcHPif9DdgrasbJPooe+geN9+HZ0qfmLRBI7wDuz3A==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.19.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@remix-run/headers":"^0.21.1","@remix-run/fetch-router":"^0.22.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.0","@remix-run/assert":"0.3.0","@remix-run/headers":"0.21.1","@remix-run/fetch-router":"0.22.0"},"_npmOperationalInternal":{"tmp":"tmp/cors-middleware_0.1.9_1788908716113_0.9723380927874081","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"_id":"@remix-run/cors-middleware@0.2.0","bugs":{"url":"https://github.com/remix-run/remix/issues"},"dist":{"shasum":"d2f690ff5eae87d41fba2ccac79a1d2ff6170c3c","tarball":"https://registry.npmjs.org/@remix-run/cors-middleware/-/cors-middleware-0.2.0.tgz","fileCount":11,"integrity":"sha512-7YnL7Ww8+Vr3iuV6orZVGiWvfUJMGPPB79l22Pb3RcPg47UMKKgTDf6hCG34q82rGXAUqg0O8oHe/Wm12SUePA==","signatures":[{"sig":"MEUCIQCs7zjf0NMpALIdnso2LloSxIJxATos7BDZ/vTzCCKDEQIgP1Gx7pQmr32x01AgIPJgxGBiAhQ+7wi8pfECC8Mt1wM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC9hwNg5V/h4S+LW2oBC9iNx1PraFSk+XhaKecBGihn1QIgA95o62o+AGdbhtNNUCSJ2n0FpW6Jym515LF0U8krGOs="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@remix-run%2fcors-middleware@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32347},"name":"@remix-run/cors-middleware","type":"module","_from":"file:/tmp/remix-publish-cors-middleware-HyMtxi/remix-run-cors-middleware-0.2.0.tgz","author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"test":"remix test","build":"tsc -p tsconfig.build.json","clean":"git clean -fdX","test:bun":"bun x --bun remix test","typecheck":"tsc --noEmit"},"version":"0.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:61ec104c-8fd6-44c9-ba02-6a74c6ffe4f2"}},"homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"_resolved":"/tmp/remix-publish-cors-middleware-HyMtxi/remix-run-cors-middleware-0.2.0.tgz","_integrity":"sha512-7YnL7Ww8+Vr3iuV6orZVGiWvfUJMGPPB79l22Pb3RcPg47UMKKgTDf6hCG34q82rGXAUqg0O8oHe/Wm12SUePA==","repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"_npmVersion":"11.19.0","description":"Middleware for handling CORS in Fetch API servers","directories":{},"maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"_nodeVersion":"24.20.0","dependencies":{"@remix-run/headers":"^0.21.2","@remix-run/fetch-router":"^0.22.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^7.0.2","@types/node":"^24.6.0","@remix-run/test":"0.6.1","@remix-run/assert":"0.3.0","@remix-run/headers":"0.21.2","@remix-run/fetch-router":"0.22.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cors-middleware_0.2.0_1789770979200_0.4370681460581429"}}},"time":{"created":"2026-03-11T04:01:28.702Z","modified":"2026-09-18T22:36:19.676Z","0.0.0":"2026-03-11T04:01:29.021Z","0.1.0":"2026-03-25T23:04:01.257Z","0.1.1":"2026-04-23T00:37:48.972Z","0.1.2":"2026-04-30T19:11:33.460Z","0.1.3":"2026-05-20T03:21:45.512Z","0.1.4":"2026-05-20T20:17:53.257Z","0.1.5":"2026-05-29T18:17:06.019Z","0.1.6":"2026-06-05T18:25:34.391Z","0.1.7":"2026-07-01T19:02:25.971Z","0.1.8":"2026-08-14T00:13:41.442Z","0.1.9":"2026-09-08T23:05:16.199Z","0.2.0":"2026-09-18T22:36:19.298Z"},"bugs":{"url":"https://github.com/remix-run/remix/issues"},"author":{"name":"Michael Jackson","email":"mjijackson@gmail.com"},"license":"MIT","homepage":"https://github.com/remix-run/remix/tree/main/packages/cors-middleware#readme","keywords":["fetch","router","middleware","cors","cross-origin","preflight"],"repository":{"url":"git+https://github.com/remix-run/remix.git","type":"git","directory":"packages/cors-middleware"},"description":"Middleware for handling CORS in Fetch API servers","maintainers":[{"name":"mjackson","email":"mjijackson+npm@gmail.com"}],"readme":"# cors-middleware\n\nCORS middleware for Remix. It adds standard CORS response headers to Fetch API servers and can either short-circuit preflight requests or pass them through to app-defined `OPTIONS` handlers.\n\n## Features\n\n- **Preflight Handling** - Automatically handles `OPTIONS` preflight requests\n- **Flexible Origin Rules** - Supports static, regex, list, and function-based origin policies\n- **Credential Support** - Supports credentialed requests with spec-safe origin reflection\n- **Header Controls** - Configure allowed and exposed headers, preflight methods, and max age\n- **Private Network Support** - Optionally allow private network preflight requests\n\n## Installation\n\n```sh\nnpm i remix\n```\n\n## Usage\n\n```ts\nimport { createRouter } from 'remix/router'\nimport { cors } from 'remix/middleware/cors'\n\nlet router = createRouter({\n  middleware: [\n    cors({\n      origin: ['https://app.example.com', 'https://admin.example.com'],\n      credentials: true,\n      exposedHeaders: ['X-Request-Id'],\n    }),\n  ],\n})\n\nrouter.get('/api/projects', () => {\n  return Response.json([{ id: 'p1', name: 'Remix' }], {\n    headers: {\n      'X-Request-Id': 'req_123',\n    },\n  })\n})\n```\n\n## Origin Policies\n\n`origin` supports:\n\n- `'*'` to allow all origins\n- `string` for a single exact origin\n- `RegExp` for pattern-based matching\n- `Array<string | RegExp>` for multiple exact and pattern matches\n- `true` to reflect the request origin\n- `(origin, context) => boolean | string` for dynamic policies\n\nWhen `origin` is omitted, it defaults to `'*'`. This implicit default is not reflected when credentials are enabled. Configure an explicit origin policy for credentialed cross-origin requests.\n\n### Restrict Origins\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      origin: ['https://app.example.com', 'https://admin.example.com'],\n      credentials: true,\n    }),\n  ],\n})\n```\n\n### Dynamic Origin Policies\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      origin(origin, context) {\n        if (context.url.pathname.startsWith('/public/')) {\n          return '*'\n        }\n\n        return origin.endsWith('.trusted.example')\n      },\n    }),\n  ],\n})\n```\n\n## Preflight Behavior\n\nBy default, preflight requests are short-circuited with status `204`.\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      methods: ['GET', 'POST', 'PATCH'],\n      allowedHeaders: ['Authorization', 'Content-Type'],\n      maxAge: 600,\n    }),\n  ],\n})\n```\n\nUse a function-based `allowedHeaders` policy when the header allowlist depends on the request:\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      allowedHeaders(request) {\n        let requestedHeaders = request.headers.get('Access-Control-Request-Headers')\n\n        if (requestedHeaders?.includes('x-admin-token')) {\n          return ['Authorization', 'Content-Type', 'X-Admin-Token']\n        }\n\n        return ['Authorization', 'Content-Type']\n      },\n    }),\n  ],\n})\n```\n\nFunction-based `allowedHeaders` responses vary on `Access-Control-Request-Headers`, so caches do not reuse a preflight response for a different requested-header set.\n\nSet `preflightContinue: true` to let downstream handlers process preflight requests. Use `preflightStatusCode` when you want short-circuited preflight responses to return a status other than `204`.\n\n## Private Network Preflights\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      allowPrivateNetwork: true,\n    }),\n  ],\n})\n```\n\nPrivate network access is disabled by default. When `allowPrivateNetwork` is enabled, the middleware adds `Access-Control-Allow-Private-Network: true` for preflight requests that ask for private network access and pass the origin policy. The default `origin: '*'` allows all origins; configure `origin` to limit which origins can request private network access.\n\nWith this option enabled, preflight responses vary on `Access-Control-Request-Private-Network`, including when the request header is absent or does not request access.\n\n## Expose Response Headers\n\n```ts\nlet router = createRouter({\n  middleware: [\n    cors({\n      exposedHeaders: ['X-Request-Id', 'X-Trace-Id'],\n    }),\n  ],\n})\n```\n\n## Caveats\n\n- CORS is primarily a browser enforcement mechanism. Disallowed non-preflight requests still reach your handlers unless you add separate request validation.\n- When `credentials: true` is used without an explicit `origin`, the middleware preserves the default `Access-Control-Allow-Origin: *` header. Browsers do not expose credentialed responses with a wildcard allowed origin, so configure an explicit origin policy to allow them.\n- When `credentials: true` is used with an explicit `origin: '*'`, the middleware reflects the request origin and adds `Vary: Origin` so the response stays cache-safe.\n- When `allowedHeaders` is a function, preflight responses vary on `Access-Control-Request-Headers` so caches do not reuse a response for a different requested-header set.\n- `preflightContinue` and `preflightStatusCode` only affect how preflight `OPTIONS` requests are handled. They do not change actual request authorization.\n\n## Related Packages\n\n- [`cop-middleware`](https://github.com/remix-run/remix/tree/main/packages/cop-middleware) - Browser-origin protection middleware for unsafe cross-origin requests\n- [`fetch-router`](https://github.com/remix-run/remix/tree/main/packages/fetch-router) - Router for the web Fetch API\n- [`headers`](https://github.com/remix-run/remix/tree/main/packages/headers) - Typed HTTP header utilities\n\n## Related Work\n\n- [MDN: Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)\n- [Fetch Standard: CORS protocol](https://fetch.spec.whatwg.org/#http-cors-protocol)\n- [expressjs/cors](https://github.com/expressjs/cors)\n- [rack-cors](https://github.com/cyu/rack-cors)\n\n## License\n\nSee [LICENSE](https://github.com/remix-run/remix/blob/main/LICENSE)\n","readmeFilename":"README.md"}