File: //usr/lib/python3/dist-packages/django/middleware/__pycache__/clickjacking.cpython-310.pyc
o
�a� � @ s0 d Z ddlmZ ddlmZ G dd� de�ZdS )z�
Clickjacking Protection Middleware.
This module provides a middleware that implements protection against a
malicious site loading resources from your site in a hidden frame.
� )�settings)�MiddlewareMixinc @ s e Zd ZdZdd� Zdd� ZdS )�XFrameOptionsMiddlewarea�
Set the X-Frame-Options HTTP header in HTTP responses.
Do not set the header if it's already set or if the response contains
a xframe_options_exempt value set to True.
By default, set the X-Frame-Options header to 'SAMEORIGIN', meaning the
response can only be loaded on a frame within the same site. To prevent the
response from being loaded in a frame in any site, set X_FRAME_OPTIONS in
your project's Django settings to 'DENY'.
c C s8 |� d�d ur |S t|dd�r|S | �||�|jd<