Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 forbidden sorunu #87

Open
oguzhanerdogdu opened this issue Nov 22, 2023 · 1 comment
Open

403 forbidden sorunu #87

oguzhanerdogdu opened this issue Nov 22, 2023 · 1 comment

Comments

@oguzhanerdogdu
Copy link

Domainim cloudflare'da barınıyor. Sunucu üzerinde sorunsuz kurulum yaptım. django.env dosyasında CSRF_TRUSTED_ORIGINS satırını da CSRF_TRUSTED_ORIGINS = ['https://*.siteadi.com'] olarak değiştirdim fakat siteye domainden bağlandığımda herhangi bir post işleminde 403 forbidden hatası veriyor, http ile dolaşırken bir sıkıntı yok. Düzeltmek için atladığım bir nokta mı var acaba?

SSL olarak cloudflare'ın ücretsiz olarak sağladığı ssl sertifikasını kullanıyorum.

@realsuayip
Copy link
Owner

realsuayip commented Nov 22, 2023

.env dosyasında satır şöyle olmalı:

CSRF_TRUSTED_ORIGINS=https://*.siteadi.com

birden fazla eklemek için boşlukla ayırın. listelerde kural bu şekilde

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants