404 error on default endpoints
Issue #37
resolved
Hi,
I’m getting a 404 error for all default endpoints on a new installation.
I’ve tried it with typo3 v11 and v12 with the according nnrestapi version, same result.
I was able to fix it by setting $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] to false but I don’t think that’s the correct solution.
Do you maybe have an idea on how to fix it?
Thanks!
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Thanks for reporting – sorry for the late reply.
We found that there actually can be two settings in the
LocalConfiguration.php
/settings.php
that cause this issue:FE.cacheHash.enforceValidation => true
and
FE.pageNotFoundOnCHashError => true
If both settings are set to
false
the problem will not occur anymore. Of course this is not something that most people will want to do because it decreases security for “normal” links on the website. We have implemented a fix for this in this commit which will be available in the next release.https://bitbucket.org/99grad-team/nnrestapi/commits/6bb9be0d03c55cf21a3a705e5045b70ec71c720d