You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading from version 4.4.0-jakarta to 4.5.0-jakarta of the org.owasp:csrfguard library, we suddenly encountered an error 400 dialog in our web application:
The actual error read:
This endpoint should not be invoked if the Token-Per-Page functionality is disabled!
It is caused by the javascript invoking a xhr POST connection:
Our settings include:
org.owasp.csrfguard.TokenPerPage = false
In the non-minified version of the JS (csrfguard.js), this block (line 730ff) is not executed with our settings:
It appears as if in the minified version csrfguard.min.js this somehow gets executed, as the requestPageTokens method (which performs this xhr POST request) is called.
If we switch back to the non-minified version with this setting, it works again as expected (that is, without error dialog):
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
After upgrading from version
4.4.0-jakarta
to4.5.0-jakarta
of theorg.owasp:csrfguard
library, we suddenly encountered an error 400 dialog in our web application:The actual error read:
It is caused by the javascript invoking a xhr POST connection:
Our settings include:
In the non-minified version of the JS (
csrfguard.js
), this block (line 730ff) is not executed with our settings:It appears as if in the minified version
csrfguard.min.js
this somehow gets executed, as therequestPageTokens
method (which performs this xhr POST request) is called.If we switch back to the non-minified version with this setting, it works again as expected (that is, without error dialog):
It would be cool if we could use the minified version. Would you like to have a look at the minification process/settings?
The text was updated successfully, but these errors were encountered: