I am working with Openresty.
Work : I am having a website which is designed in Django and i am retuning response content from directly from nginx by using lua code without going to django if cache is found into redis.
Problem: When i am filling any Form at my page i am getting 403 (csrf_token failure issue). This issue is coming when i am returning data directly from nginx i am not able to generate csrf_tokrn dynamically .
Help Needed: I want to know how can i generate csrf token when i am retuning response directly from redis .