nuxt-security icon indicating copy to clipboard operation
nuxt-security copied to clipboard

when `corsHandler.origin` is `RegExp[]`, it doesn't work

Open Shana-AE opened this issue 1 year ago • 0 comments

Version

nuxt-security: v2.0.0-rc.9 nuxt: v3.12.4

Reproduction Link

image

image

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

Shana-AE avatar Jul 23 '24 03:07 Shana-AE