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

webext: backends: Fix Cors for local Ogmios #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huynq-smartosc
Copy link

TL;DR: This fix to allow extension able to work with Chrome, when Backend Providers is local Ogmios/Kupo

Explanation:
When submit a tx to Ogmios, our extension will call to /?SubmitTransaction with header "Content-Type": "application/json" : Ref

But Ogmios only response back with Access-Control-Allow-Origin: *, but without Access-Control-Allow-Headers: content-type. This lead to Chrome rejected the cross-origin request POST.

Simply remove that Content-Type header will do the trick.

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.

None yet

1 participant