question

MohitKumarSharma-1566 avatar image
0 Votes"
MohitKumarSharma-1566 asked MohitKumarSharma-1566 commented

Application Gateway CSRF Token Error: Valid CSRF Token Required

Hi All,

I have a Php website and it is hosted on the azure web app. It is also working fine. But when I am using it through the application gateway I am getting a CSRF token error on the login page. Can you help me please?

Thanks
Mohit Sharma

azure-application-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

suvasara-MSFT avatar image
0 Votes"
suvasara-MSFT answered MohitKumarSharma-1566 commented

@MohitKumarSharma-1566, I did test it locally and looks CSRF token has been transferred without any error.

My setup:

  1. Azure WebAPP with PHP (7.4)

  2. A sample PHP application with basic CSRF session module.

  3. Custom domain added to Azure WebApp with no binding.

  4. Azure Application gateway standard V2.

Generate-token.php
90401-generate-token.log

verifytoken.php
90259-verifytoken.log

Let us know what framework are you using here for implementing CSRF protection.


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.






· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi suvasara-MSFT,

I am not able to understand this things. How can we do that. Can you please help me in it?
Custom domain added to Azure WebApp with no binding.

0 Votes 0 ·

This is the 3rd party CRM based on the core php
https://osticket.com/

0 Votes 0 ·