Description
Are there any plans to modify js_set to allow specific phase declaration? Right now js_set sort of intelligently chooses its phase based on where you use the variable which is nice but if you need to use the variable in a way that has access to data that is only available at specific processing phases, there is no way to do that. For example, if we want to use a variable that can allow/deny access to a location based on the contents of the request body in a POST, this is not possible with js_set. It's only possible with js_content due to the availability of the content in the phase. If there was a way to specify that a variable must be run at an appropriate phase where the request body is available (for example), this would/should solve that.
It could be something like:
Default:
js_set module.function (picks the phase automatically like it does now)
Or declaritive:
js_set module.function access (where the phase needed is named)
Of course, if there is just some way to allow js_set variables to have access to the request body (even if that must be declarative too) that would also solve the current problem.