Skip to content

Commit

Permalink
Fix CORS at SPARQL endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Sep 26, 2024
1 parent 6dbba16 commit ddf1efc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/sparql_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ddf1efc

Please sign in to comment.