From ddf1efc1f63a97cc211a4c8b47c5e853f4b081c7 Mon Sep 17 00:00:00 2001 From: Jakob Voss Date: Thu, 26 Sep 2024 14:22:45 +0200 Subject: [PATCH] Fix CORS at SPARQL endpoint --- app/sparql_proxy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/sparql_proxy.py b/app/sparql_proxy.py index 39ec0a7..f6eaab2 100644 --- a/app/sparql_proxy.py +++ b/app/sparql_proxy.py @@ -56,6 +56,7 @@ def proxyRequest(self, request): allowed = ["Content-Type", "Vary", "Cache-Control", "Pragma", "Content-Encoding"] headers = {k: v for k, v in res.raw.headers.items() if k in allowed} + headers['Access-Control-Allow-Origin'] = '*' def generate(): for chunk in res.raw.stream(decode_content=False):