Forbidden (403) : CSRF verification failed. Request aborted.
2021. 4. 10. 23:42ㆍ파이썬/Django
Forbidden (403)
CSRF verification failed. Request aborted.
You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for “same-origin” requests.
POST 방식에서는 아래 코드를 넣어줘야 처리됨
<form method="POST" action="{% url 'mp3:download' %}">
{% csrf_token %}
</form>
'파이썬 > Django' 카테고리의 다른 글
Django Page not found(404) (0) | 2021.04.24 |
---|---|
pytube.exceptions.RegexMatchError: get_ytplayer_config: could not find match for config_patterns (0) | 2021.04.10 |
NoReverseMatch : Reverse for 'download' not found. 'download' is not a valid view function or pattern name. (0) | 2021.04.10 |
The current path, mp3/, didn't match any of these. (0) | 2021.04.06 |
Django urls.py 셋팅 (0) | 2021.04.06 |