Replies: 3 comments
-
Hello @bpapez, I assume generally you wouldn't have too many domains to configure. If there are only a few, then I'd prefer the list approach, because it's less error prone. Feel free to provide a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Created PR #200 for this enhancement. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Released under version 4.3.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a requirement for being able to configure multiple values for the
org.owasp.csrfguard.domainOrigin
property. It could either be a regular expression, like:org.owasp.csrfguard.domainOrigin = example.(ch|swiss)
or a list like:
org.owasp.csrfguard.domainOrigin = example.ch,example.swiss
As far as I can see this value is only used as parameter in the
isValidDomain
function ofcsrfguard.js
. Should we provide a PR to handle multiple values in the originalcsrfguard.js
or do you think this should just be solved in custom adaptations? Which solution do you prefer, the regexp or the list?Regards,
Benjamin
Beta Was this translation helpful? Give feedback.
All reactions