Skip to content

Commit

Permalink
add CORS expose headers setting (#1689) (#1755)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jul 24, 2024
1 parent 7bb7b38 commit 0281732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoapi/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
if CONFIG['server'].get('cors', False):
try:
from flask_cors import CORS
CORS(APP)
CORS(APP, CORS_EXPOSE_HEADERS=['*'])
except ModuleNotFoundError:
print('Python package flask-cors required for CORS support')

Expand Down
1 change: 1 addition & 0 deletions pygeoapi/starlette_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ async def __call__(self, scope: Scope,
CORSMiddleware,
allow_origins=['*'],
allow_methods=['*'],
expose_headers=['*']
)

try:
Expand Down

0 comments on commit 0281732

Please sign in to comment.