Changes between Initial Version and Version 1 of Ticket #34682
- Timestamp:
- Jun 28, 2023, 12:25:43 AM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34682
- Property Component CSRF → Core (System checks)
- Property Resolution → worksforme
- Property Status new → closed
- Property Summary Django version 4.2.2 or more over version 4.0 has a major bug related to CSRF_TRUSTED_ORIGINS → System check for CSRF_TRUSTED_ORIGINS raises errors for http://localhost:port.
-
Ticket #34682 – Description
initial v1 5 5 But still i was getting the problem . After some research I've discovered this stackoverflow thread [https://stackoverflow.com/questions/70508568/django-csrf-trusted-origins-not-working-as-expected], it's telling me that I need to add scheme like 'http://localhost:3000' and has to has the same thing in allowed domains section. 6 6 This is the configuration what i have done after going through that stackoverflow thread 7 7 {{{ 8 8 CSRF_TRUSTED_ORIGINS = [ 9 9 'http://localhost:3000', 10 10 'http://localhost:8000', 11 11 ] 12 13 12 14 13 ALLOWED_HOSTS = ['localhost'] … … 19 18 'http://localhost:8000' 20 19 ] 21 20 }}} 22 21 But after this when ever I was trying to reload the application I was getting keep getting system error " 23 22 {{{