Skip to content
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

Can't launch cron task manually when MAIN_SECURITY_CSRF_WITH_TOKEN security is set to 3 #30491

Closed
IC-Ilies opened this issue Jul 30, 2024 · 1 comment
Assignees
Labels
Bug This is a bug (something does not work as expected)

Comments

@IC-Ilies
Copy link
Contributor

Bug

Can't launch cron task manually when CSRF security is set to 3

Dolibarr Version

20, develop

Environment PHP

8.2

Environment Database

mariadb

Steps to reproduce the behavior and expected behavior

set MAIN_SECURITY_CSRF_WITH_TOKEN to 3
launch any cron task from the dolibarr interface
this error will occur :
Access to this page this way (POST method or GET with a sensible value for 'action' parameter) is refused by CSRF protection in main.inc.php. Token not provided. If you access your server behind a proxy using url rewriting and the parameter is provided by caller, you might check that all HTTP header are propagated (or add the line $dolibarr_nocsrfcheck=1 into your conf.php file or MAIN_SECURITY_CSRF_WITH_TOKEN to 0 instead of 3 into setup).

Attached files

No response

@IC-Ilies IC-Ilies added the Bug This is a bug (something does not work as expected) label Jul 30, 2024
@IC-Ilies IC-Ilies self-assigned this Jul 30, 2024
@IC-Ilies
Copy link
Contributor Author

FIX#30491

@IC-Ilies IC-Ilies closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant