Skip to content

Commit 605cc4f

Browse files
authored
Updated links to CSRF/AJAX Django documentation (encode#9118)
1 parent 4bbfa8d commit 605cc4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-guide/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ More information can be found in the [Documentation](https://django-rest-durin.r
454454
[basicauth]: https://tools.ietf.org/html/rfc2617
455455
[permission]: permissions.md
456456
[throttling]: throttling.md
457-
[csrf-ajax]: https://docs.djangoproject.com/en/stable/ref/csrf/#ajax
457+
[csrf-ajax]: https://docs.djangoproject.com/en/stable/howto/csrf/#using-csrf-protection-with-ajax
458458
[mod_wsgi_official]: https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIPassAuthorization.html
459459
[django-oauth-toolkit-getting-started]: https://django-oauth-toolkit.readthedocs.io/en/latest/rest-framework/getting_started.html
460460
[django-rest-framework-oauth]: https://jpadilla.github.io/django-rest-framework-oauth/

docs/topics/ajax-csrf-cors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The best way to deal with CORS in REST framework is to add the required response
3535

3636
[cite]: https://blog.codinghorror.com/preventing-csrf-and-xsrf-attacks/
3737
[csrf]: https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)
38-
[csrf-ajax]: https://docs.djangoproject.com/en/stable/ref/csrf/#ajax
38+
[csrf-ajax]: https://docs.djangoproject.com/en/stable/howto/csrf/#using-csrf-protection-with-ajax
3939
[cors]: https://www.w3.org/TR/cors/
4040
[adamchainz]: https://github.com/adamchainz
4141
[django-cors-headers]: https://github.com/adamchainz/django-cors-headers

0 commit comments

Comments
 (0)