1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #31949 -- Made @xframe_options_(deny/sameorigin/exempt) decorators to work with async functions.

This commit is contained in:
Ben Lomax
2023-04-26 07:08:33 +01:00
committed by Mariusz Felisiak
parent b43936f2ec
commit 00f5d2d110
6 changed files with 144 additions and 23 deletions

View File

@@ -83,6 +83,9 @@ view functions:
* :func:`~django.views.decorators.cache.cache_control`
* :func:`~django.views.decorators.cache.never_cache`
* ``xframe_options_deny()``
* ``xframe_options_sameorigin()``
* ``xframe_options_exempt()``
For example::