Currently my posts.py file looks like this:
```python
from django.http import HttpResponse
from django.views.decorators.csrf import ensure_csrf_cookie
@ensure_csrf_cookie
def index(request):
return HttpResponse('ok')
```
The header I get when accessing the route is:
```
content-length: 2
content-type: text/html; charset=utf-8
date: Wed, 30 Sep 2020 22:37:40 GMT
server: WSGIServer/0.2 CPython/3.7.3
vary: Cookie
x-content-type-options: nosniff
x-frame-options: DENY
```
Thanks for the help.
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/93facb86-270a-432d-98cd-babce056f421n%40googlegroups.com.
No comments:
Post a Comment