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

feat: cors support for all requests #353

Closed
wants to merge 2 commits into from
Closed

Conversation

IJustDev
Copy link

Javascript browser clients can now use hastebin.

Fix #352 Fix #47

@filipechagas
Copy link
Contributor

Hi @IJustDev
Thank you for contributing!

I'm not sure we should have this enabled by default since, as it was already pointed out in one of the issues you linked, it could result in one extra point of concern for malicious usage. Users that already have haste-server installed could be surprised by their servers suddenly accepting cross-origin requests.

WDYT about having that conditionally enabled by an ENV var? Disabled by default. It wouldn't add much extra volume to your PR while keeping backwards compatibility.

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 17, 2022
@github-actions
Copy link

This PR was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CORS Support JSONP support
2 participants