How to solve CSRF verification faileld?

74 Views Asked by At

Request aborted. Help

Reason given for failure:

Origin checking failed - https://teamsparrowpp-qrgen-production 6a43.up.railway.app does not match any trusted origins.

I have <form method="POST">{% csrf_token %} on my html. I have tried adding on settings

CSRF_TRUSTED_ORIGINS = ['https://teamsparrowpp-qrgen-production-6a43.up.railway.app']

But it's not working.

0

There are 0 best solutions below