File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 34
34
{% block extra_head %}
35
35
{% endblock %}
36
36
</ head >
37
- < body >
37
+ < body hx-headers =' {"X-CSRFToken": "{{ csrf_token }}"} ' >
38
38
< nav class ="navbar navbar-expand-sm bg-body-tertiary ">
39
39
< div class ="container-fluid ">
40
40
< a class ="navbar-brand mx-md-2 " href ="{% url 'daily_bird' %} "> < i class ="fas fa-dove "> </ i > Birdle</ a >
48
48
{% get_regions as regions %}
49
49
{% for code, name in regions.items %}
50
50
< li >
51
- < a href ="# " name ={{code}} class ="dropdown-item " hx-post ="/region " hx-headers =' {"X-CSRFToken": "{{ csrf_token }}"} ' hx- target ="#region " hx-swap ="innerHTML "> {{name}}</ a >
51
+ < a href ="# " name ={{code}} class ="dropdown-item " hx-post ="/region " hx-target ="#region " hx-swap ="innerHTML "> {{name}}</ a >
52
52
</ li >
53
53
{% endfor%}
54
54
</ ul >
Original file line number Diff line number Diff line change 183
183
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
184
184
185
185
CSRF_TRUSTED_ORIGINS = [
186
- 'https://www.play-birdle.com/ ' ,
187
- 'http://www.play-birdle.com/ ' ,
188
- 'http ://www.play-birdle.com/region'
186
+ 'https://www.play-birdle.com' ,
187
+ 'http://www.play-birdle.com' ,
188
+ 'https ://www.play-birdle.com/region'
189
189
]
You can’t perform that action at this time.
0 commit comments