nuxt-security
nuxt-security copied to clipboard
when `corsHandler.origin` is `RegExp[]`, it doesn't work
Version
nuxt-security: v2.0.0-rc.9 nuxt: v3.12.4
Reproduction Link
useRuntimeConfig retrieve runtimeConfig from process.env which made RegExp inside origin be JSON.stringifyed to {}, so corsHandler.origin RegExp[] is not available now.
Steps to reproduce
What is Expected?
it should work
What is actually happening?
when corsHandler.origin is RegExp[], it doesn't work