zeeguu/api/api/utils/route_wrappers.py
def cross_domain(view):
    """
    Decorator enables x-origin requests from any domain.

    More about Cross-Origin Resource Sharing: http://www.w3.org/TR/cors/
    """

    @functools.wraps(view)
    def wrapped_view(*args, **kwargs):
        response = flask.make_response(view(*args, **kwargs))
        response.headers["Access-Control-Allow-Origin"] = "*"
        return response

    return wrapped_view

    Decorator enables x-origin requests from any domain.

    More about Cross-Origin Resource Sharing: http://www.w3.org/TR/cors/
    
Decorator enables x-origin requests from any domain.
Decorator enables x - origin requests from any domain .
def cross_domain(view):
    @functools.wraps(view)
    def wrapped_view(*args, **kwargs):
        response = flask.make_response(view(*args, **kwargs))
        response.headers["Access-Control-Allow-Origin"] = "*"
        return response
    return wrapped_view
def cross_domain ( view ) : @ functools . wraps ( view ) def wrapped_view ( * args , ** kwargs ) : response = flask . make_response ( view ( * args , ** kwargs ) ) response . headers [ "Access-Control-Allow-Origin" ] = "*" return response return wrapped_view
Decorator enables x-origin requests from any domain.
Decorator enables x - origin requests from any domain .
"""
    Decorator enables x-origin requests from any domain.

    More about Cross-Origin Resource Sharing: http://www.w3.org/TR/cors/
    """
view