tobias-kaerst-software / elysia-helmet

Help secure Elysia apps with various HTTP headers 🔒
https://www.npmjs.com/package/elysia-helmet
MIT License
31 stars 3 forks source link

Enable different config per route #5

Closed nxht closed 7 months ago

nxht commented 8 months ago

I'm not sure if there's a way of doing it but it seems it's not possible to apply separate config for specific route / plugins. Due to plugin deduplication, attempting to reuse plugin with different config will end up loading the previous one.

From what I've tested, simply providing optional seed string as option solves the issue.
Not sure if there's other better ways to solve it.