Azure postgres SQL - 403 forbidden CSRF verification failed

Rakesh 20 Reputation points
2025-05-15T17:08:42.6733333+00:00

I have connected Azure postgres SQL to my web app, while I am running my app I received "Screenshot 2025-05-15 120032.png Request aborted", how to resolve this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Alekhya Vaddepally 1,670 Reputation points Microsoft External Staff Moderator
    2025-05-15T22:18:15.0566667+00:00

    Hi Rakesh
    can you please check the Token in setting.py CSRF_TRUSTED_ORIGINS should not mentioned multiple times. Which may lead to overriding the previous settings.

    You can see the fix here: https://github.com/KafetzisThomas/Chatterbox/commit/97935ca3ca7bc3fd859b7a941945eff5f49cab07

    if you have any further concerns or queries, please feel free to reach out to us.

    0 comments No comments

  2. Rakesh 20 Reputation points
    2025-05-24T17:27:47.75+00:00

    Hi Alekhya,

    Sorry for the delay. The problem was solved. I checked the container status, and it wasn't running. I fixed it, and it is now working properly.

    However, I'm facing a new issue. The transformers are used in my code, and they work fine on my local computer and in Docker. However, I'm getting a 504 timeout when I push the image to Azure Web App, which is using the S1 plan. It would be great if you could help me.


  3. Alekhya Vaddepally 1,670 Reputation points Microsoft External Staff Moderator
    2025-05-26T18:00:38.3+00:00

    Hi Rakesh
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Azure Postgres SQL - 403 forbidden CSRF verification failed

    Solution:

    The problem was solved. I checked the container status, and it wasn't running. I fixed it, and it is now working properly.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.