Ë
    z<]i¼  ã                   ó6   — d Z ddlmZ ddlmZ  G d„ de«      Zy)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                   ó   — e Zd ZdZd„ Zd„ Zy)Ú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 'DENY', meaning the response
    cannot be displayed in a frame, regardless of the site attempting to do so.
    To enable the response to be loaded on a frame within the same site, set
    X_FRAME_OPTIONS in your project's Django settings to 'SAMEORIGIN'.
    c                 óˆ   — |j                  d«      |S t        |dd«      r|S | j                  ||«      |j                  d<   |S )NzX-Frame-OptionsÚxframe_options_exemptF)ÚgetÚgetattrÚget_xframe_options_valueÚheaders©ÚselfÚrequestÚresponses      ú\/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/django/middleware/clickjacking.pyÚprocess_responsez(XFrameOptionsMiddleware.process_response   sT   € à<‰<Ð)Ó*Ð6ØˆOô 8Ð4°eÔ<ØˆOà.2×.KÑ.KØØó/
ˆ×ÑÐ*Ñ+ð ˆó    c                 ó@   — t        t        dd«      j                  «       S )a  
        Get the value to set for the X_FRAME_OPTIONS header. Use the value from
        the X_FRAME_OPTIONS setting, or 'DENY' if not set.

        This method can be overridden if needed, allowing it to vary based on
        the request or response.
        ÚX_FRAME_OPTIONSÚDENY)r
   r   Úupperr   s      r   r   z0XFrameOptionsMiddleware.get_xframe_options_value(   s   € ô ”xÐ!2°FÓ;×AÑAÓCÐCr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   © r   r   r   r      s   „ ñ
òóDr   r   N)r   Údjango.confr   Údjango.utils.deprecationr   r   r   r   r   ú<module>r      s    ðñõ !Ý 4ô$D˜oõ $Dr   