[rfc] layers: custom CSP merger #198
Closed
dargmuesli
started this conversation in
Ideas
Replies: 1 comment 9 replies
-
I think in the end the most plausible solution is to let each layer define a function which receives the result of all earlier layers as input parameter and freely do any changes to that. I think of something like |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I'm thinking about CSP and Nuxt layers... I suppose that currently in nuxt-security the headers of different layers would be merged using the standard defu strategy (as with all Nuxt config).
I'm thinking about ways to widen the possibilities there. Imagine one layer defining 'none' and the next layer defining a value. That would require 'none' to be removed. Then another layer might come which wishes to override the previously set value back to 'none'. I think that's currently not possible, but would be cool if it was! A custom merger would surely be needed.
But before I hop into custom code I hereby want to make those thoughts transparent as there might be other good ideas about that too! What comes to your mind?
Beta Was this translation helpful? Give feedback.
All reactions