added cors headers
This commit is contained in:
parent
1b045a4540
commit
8f804a6905
2
main.py
2
main.py
@ -50,5 +50,5 @@ def read_root(
|
||||
root = xml.fromstring(response.text)
|
||||
content = [i.text for i in root[1][0][0][3]] # root/body/GetFederationInformationResponseMessage/Domains
|
||||
|
||||
return JSONResponse(content=content, headers={"Cache-Control": "max-age=604800, public"})
|
||||
return JSONResponse(content=content, headers={"Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=604800, public"})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user