Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corse allow methods in env options. #683 #684

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

ubi15
Copy link
Contributor

@ubi15 ubi15 commented Aug 11, 2023

As for in discussion #683

The default settings don't allow to use the statistics with geojson POST endpoint from a web-app, as only the GET method is allowed.

This pull request includes a three-lines change to allow users to allow also the POST method by setting TITILER_API_CORS_ALLOW_METHODS='GET,POST'.

I know about the ongoing discussion on whether or not to include this middleware in the default application. I am ok with my contribution being rejected if it is not in line with your ideas.

However, I would have saved a day of development if this option were available and documented and it might be help other people not expert in HTTP request to quickly test and deploy their own titiler backend.

@vincentsarago
Copy link
Member

🙏 thanks @ubi15

@vincentsarago vincentsarago merged commit 5c65b89 into developmentseed:main Aug 21, 2023
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants