Error: CSRF issue on custom domain
I'm having a CSRF error on my custom domain in my Django app deployed on the Railway platform. I've already added my domain to the CSRF_TRUSTED_ORIGINS list in my Django settings, but the error still persists. It's like I've given my friend a key to my house, but they're still unable to enter even though I've given them permission.
Can you please advise on any additional steps that I can take to troubleshoot this issue?
6 Replies
Project ID:
441cb51a-0a80-4b07-a18d-5c77a696939f
project id : 441cb51a-0a80-4b07-a18d-5c77a696939f
please share your repo
my github repo is private but we can walk through steps you think i am missing its realy week since i am having this error
hard to describe, so I will let someone with more django experience come along
i think its more related to domains rather django specific , because when i am using railway generated domain i dont have csrf error but when i am on the custom domain the error is there ?
so in the custom domain for railway app i have two custom domains kulmiye-edu.com , www.kulmiye-edu.com , what other custom domains you think is necessary
solved : the issue was i was adding www before the trusted origin i removed and it worked thanks again