ó
³Ebc           @   sp   d  d l  m Z d  d l  m Z d  d l m Z d  d l m Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 S(
   i   (   t   dump_header(   t   parse_set_header(   t   environ_property(   t   header_propertyt   CORSRequestMixinc           B   sJ   e  Z d  Z e d d d ƒZ e d d e d d ƒZ e d d d ƒZ RS(	   s®   A mixin for :class:`~werkzeug.wrappers.BaseRequest` subclasses
    that adds descriptors for Cross Origin Resource Sharing (CORS)
    headers.

    .. versionadded:: 1.0
    t   HTTP_ORIGINt   docsœ   The host that the request originated from. Set :attr:`~CORSResponseMixin.access_control_allow_origin` on the response to indicate which origins are allowed.t#   HTTP_ACCESS_CONTROL_REQUEST_HEADERSt	   load_funcsÖ   Sent with a preflight request to indicate which headers will be sent with the cross origin request. Set :attr:`~CORSResponseMixin.access_control_allow_headers` on the response to indicate which headers are allowed.t"   HTTP_ACCESS_CONTROL_REQUEST_METHODsÔ   Sent with a preflight request to indicate which method will be used for the cross origin request. Set :attr:`~CORSResponseMixin.access_control_allow_methods` on the response to indicate which methods are allowed.(   t   __name__t
   __module__t   __doc__R   t   originR   t   access_control_request_headerst   access_control_request_method(    (    (    sn   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/werkzeug/wrappers/cors.pyR      s   		t   CORSResponseMixinc           B   s¹   e  Z d  Z e d „  ƒ Z e j d „  ƒ Z e d d e d e d d ƒZ	 e d d e d e d d	 ƒZ
 e d
 d d ƒZ e d d e d e d d ƒZ e d d e d e d d ƒZ RS(   s¯   A mixin for :class:`~werkzeug.wrappers.BaseResponse` subclasses
    that adds descriptors for Cross Origin Resource Sharing (CORS)
    headers.

    .. versionadded:: 1.0
    c         C   s   d |  j  k S(   sÈ   Whether credentials can be shared by the browser to
        JavaScript code. As part of the preflight request it indicates
        whether credentials can be used on the cross origin request.
        s    Access-Control-Allow-Credentials(   t   headers(   t   self(    (    sn   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/werkzeug/wrappers/cors.pyt    access_control_allow_credentials6   s    c         C   s3   | t  k r d |  j d <n |  j j d d  ƒ d  S(   Nt   trues    Access-Control-Allow-Credentials(   t   TrueR   t   popt   None(   R   t   value(    (    sn   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/werkzeug/wrappers/cors.pyR   >   s    s   Access-Control-Allow-HeadersR   t	   dump_funcR   s8   Which headers can be sent with the cross origin request.s   Access-Control-Allow-Methodss7   Which methods can be used for the cross origin request.s   Access-Control-Allow-OriginsE   The origin or '*' for any origin that may make cross origin requests.s   Access-Control-Expose-Headerss>   Which headers can be shared by the browser to JavaScript code.s   Access-Control-Max-AgesI   The maximum age in seconds the access control settings can be cached for.(   R
   R   R   t   propertyR   t   setterR   R   R    t   access_control_allow_headerst   access_control_allow_methodst   access_control_allow_origint   access_control_expose_headerst   intt   strt   access_control_max_age(    (    (    sn   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/werkzeug/wrappers/cors.pyR   .   s4   				N(	   t   httpR    R   t   utilsR   R   t   objectR   R   (    (    (    sn   /var/www/html/facial-emotion-detection-webapp-main/flask/lib/python2.7/site-packages/werkzeug/wrappers/cors.pyt   <module>   s
   '