CMS_SECURITY_POLICY_V1 in OctoberCMS 4?

I’m just working on the update to OctoberCMS 4 and I am facing the problem, that lots of things does not work:

  • Variables are null in twig
  • default partials are not found on Redirect::back()

If I remember right, all this could be solved with CMS_SECURITY_POLICY_V1 = true, which is still set. But does it also have impact or was it removed internally?

I’m not sure its related to the policy because it throws an error, instead of making things null. Try setting this to make missing variables (and components) also throw an error so you can track down what is happening.

CMS_STRICT_VARIABLES=true
CMS_STRICT_COMPONENTS=true