Changes between Initial Version and Version 1 of Ticket #34682


Ignore:
Timestamp:
Jun 28, 2023, 12:25:43 AM (15 months ago)
Author:
Mariusz Felisiak
Comment:

Thanks for the report, however it works for me, it's probably some issue in your code. Please see TicketClosingReasons/UseSupportChannels for ways to get help.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34682

    • Property Component CSRFCore (System checks)
    • Property Resolutionworksforme
    • Property Status newclosed
    • Property Summary Django version 4.2.2 or more over version 4.0 has a major bug related to CSRF_TRUSTED_ORIGINSSystem check for CSRF_TRUSTED_ORIGINS raises errors for http://localhost:port.
  • Ticket #34682 – Description

    initial v1  
    55But 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.
    66This is the configuration  what i have done  after going through that stackoverflow thread
    7 
     7{{{
    88CSRF_TRUSTED_ORIGINS = [
    99    'http://localhost:3000',
    1010    'http://localhost:8000',
    1111]
    12 
    1312
    1413ALLOWED_HOSTS = ['localhost']
     
    1918    'http://localhost:8000'
    2019]
    21 
     20}}}
    2221But after this when ever I was trying to reload the application I was getting keep getting system error  "
    2322{{{
Back to Top