-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Add enableReferrer
and enableTrustedProperties
to the Form Definition
#64
Conversation
b234c4f
to
3a42ce2
Compare
While i am pretty sure that the rendering of the referrer fields should be controllable i am not totally sure the chosen default to only render for Flow renders the referrers fields always so it might also make sense to set addReferrers to true by default. |
33b58c0
to
9f36b3d
Compare
disableReferrer
and disableTrustedProperties
to the Form Definition
…ormDefinition Both settings are disabled by default which does not change the current behavior. - `disableReferrer` avoids rendering referrers for endpoints that do not use flow validation, use method get or - `disableTrustedProperties` avoids rendering rendering trusted properties tokens in cases where property mapping is not used In Addition the RuntimeForm now sets `disableReferrer` because the runtime form only uses trusted properties but will never redirect back to the referrer.
9f36b3d
to
9a9cb73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mficzel I don't see how you would improve this. It is a simple and straight forward solution. Making it more elegant won't make it better in my opinion.
|
@kitsunet we could change this to |
I like the direction that prevents those double negatives. Maybe we can go one step further and call them |
disableReferrer
and disableTrustedProperties
to the Form DefinitionenableReferrer
and enableTrustedProperties
to the Form Definition
@bwaidelich changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 by 👁️ thanks!
merged and released as 2.3.0 @mikec655 thanks for triggering this. You will have to adjust your code to the |
Thanks a lot for the effort everyone |
FEATURE: Add
enableReferrer
andenableTrustedProperties
to the prototypeNeos.Fusion.Form:Definition.Form
Both settings are disabled by default which does not change the current behavior.
enableReferrer
: (bool, defaults to true) Enable the generation of hidden__referrer
fields. Can be disabled when themethod
isget
or no flow validation is usedenableTrustedProperties
: (bool, defaults to true) Enable the generation of hidden__trustedProperties
fields. Can be disabled when flow property mapping is not in useIn Addition the RuntimeForm now sets
enableReferrer
tofalse
because the runtime form only uses trusted properties but will never redirect back to the referrer.Resolves: #73