관리-도구
편집 파일: views.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z ddlmZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZ d� Zd � Zd� Ze eg d�� � eedd�� � � � � � � � ZdS )z� raven.contrib.django.views ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. � )�absolute_import��wraps)�settings)�HttpResponse�HttpResponseForbidden�HttpResponseBadRequest)�never_cache)�csrf_exempt)�require_http_methods)�string_types)�client)�jsonc �& � t j sdS t j dk rdS | sdS | � � � } t j D ]K}t |t � � r|� � � | k r dS �3|� | � � r dS �LdS )NF�*T)r �SENTRY_ALLOW_ORIGIN�lower� isinstancer �match)�origin�values �k/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/raven/contrib/django/views.py�is_valid_originr s� � ��'� ��u��#�s�*�*��t�� ��u� �\�\�^�^�F��-� � ���e�\�*�*� ��{�{�}�}��&�&��t�t� '� �{�{�6�"�"� ��t�t� � �5� c �<