Add cors header to status proxy response
This commit is contained in:
@@ -33,7 +33,8 @@ async def get_statuses(account_id: str, request:Request, settings: Annotated[Set
|
|||||||
|
|
||||||
forwarded_headers = {
|
forwarded_headers = {
|
||||||
'Content-type': 'application/json',
|
'Content-type': 'application/json',
|
||||||
'User-Agent': 'Serverless Feed'
|
'User-Agent': 'Serverless Feed',
|
||||||
|
'Access-Control-Allow-Origin': 'https://john.ahlroos.me'
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'link' in response.headers:
|
if 'link' in response.headers:
|
||||||
|
|||||||
Reference in New Issue
Block a user