jagaapple / next-secure-headers

Sets secure response headers for Next.js.
MIT License
317 stars 13 forks source link

Support spec names of CSP directives #30

Closed dbo closed 3 years ago

dbo commented 4 years ago

🌱 Feature Request

Is your feature request related to a problem? Please describe.

The spec defines directives in kebab-case, e.g. script-src, these are currently not picked up, but appear as undefined.

Describe the solution you'd like

Since the camel-cased directives are sensible as well, supporting both would be nice.

jagaapple commented 3 years ago

This has been supported in 2.1.0. Thank you.