mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Allow CORS for a fw instance
This commit is contained in:
parent
0aff0e0090
commit
fe5b8a7712
1 changed files with 3 additions and 1 deletions
|
@ -15,4 +15,6 @@ class ApiDiscordPlayStar(PageStar):
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
guild_id = None
|
guild_id = None
|
||||||
response = await self.interface.call_herald_event("discord", "discord_play", url=url, guild_id=guild_id)
|
response = await self.interface.call_herald_event("discord", "discord_play", url=url, guild_id=guild_id)
|
||||||
return JSONResponse(response)
|
return JSONResponse(response, headers={
|
||||||
|
"Access-Control-Allow-Origin": self.interface.config['Funkwhale']['instance_url'],
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue