Skip to content

Commit

Permalink
fix: expose headers for CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
iFergal committed Jan 17, 2025
1 parent f7cfb9d commit 0441be2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/keria/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def setupDoers(config: KERIAServerConfig):
'signature',
'signature-input',
'signify-resource',
'signify-timestamp'
'signify-timestamp',
'signify-receiver'
]
bootApp = falcon.App(middleware=falcon.CORSMiddleware(
allow_origins='*', allow_credentials='*',
Expand Down
1 change: 1 addition & 0 deletions src/keria/core/authing.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"access-control-allow-origin",
"access-control-allow-methods",
"access-control-allow-headers",
"access-control-expose-headers",
"access-control-max-age"
]

Expand Down
1 change: 1 addition & 0 deletions src/keria/core/httping.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def process_request(self, req, resp):
resp.set_header('Access-Control-Allow-Origin', '*')
resp.set_header('Access-Control-Allow-Methods', '*')
resp.set_header('Access-Control-Allow-Headers', '*')
resp.set_header('Access-Control-Expose-Headers', '*')
resp.set_header('Access-Control-Max-Age', 1728000) # 20 days
if req.method == 'OPTIONS':
raise HTTPStatus(falcon.HTTP_200)
Expand Down

0 comments on commit 0441be2

Please sign in to comment.