diff options
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r-- | talerbank/app/views.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index e218376..7b78582 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -69,6 +69,12 @@ LOGGER = logging.getLogger(__name__) # can handle (because of the wallet). UINT64_MAX = (2 ** 64) - 1 +def allow_origin_star(view_func): + def _decorator(request, *args, **kwargs): + response = view_func(request, *args, **kwargs) + response["Access-Control-Allow-Origin"] = "*" + return response + return wraps(view_func)(_decorator) class PaytoParse: def __init__(self, payto_uri): @@ -641,7 +647,6 @@ def login_via_headers(view_func): return view_func(request, user_account, *args, **kwargs) return wraps(view_func)(_decorator) - ## # Build the DB query switch based on the "direction" history # argument given by the user. |