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

fix: add OPTIONS /submit-job endpoint for CORS #123

Merged
merged 2 commits into from
Jan 14, 2025
Merged

fix: add OPTIONS /submit-job endpoint for CORS #123

merged 2 commits into from
Jan 14, 2025

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Dec 20, 2024

Motivation

I had issues with CORS when trying to run a wallet-desktop with a local tx-mining-server running in docker. This PR fixes it. For more info, see this comment.

Acceptance Criteria

  • Add OPTIONS /submit-job endpoint returning an empty success response.

@glevco glevco added the bug Something isn't working label Dec 20, 2024
@glevco glevco self-assigned this Dec 20, 2024
@glevco glevco requested a review from msbrogli as a code owner December 20, 2024 22:08
Copy link

@tuliomir tuliomir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory, the on_prepare method should be enough for the OPTIONS to work, but I can attest that the error on the Desktop Wallet requires this change.

txstratum/api.py Outdated Show resolved Hide resolved
@glevco glevco removed the request for review from msbrogli January 13, 2025 16:29
@glevco glevco merged commit 8a34fb6 into master Jan 14, 2025
2 checks passed
@glevco glevco deleted the fix/cors branch January 14, 2025 16:33
@glevco glevco mentioned this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants