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

Unable to submit new district to registry #115

Open
grasponcrypto opened this issue Jun 10, 2021 · 0 comments
Open

Unable to submit new district to registry #115

grasponcrypto opened this issue Jun 10, 2021 · 0 comments

Comments

@grasponcrypto
Copy link

There is an issue with image upload. Seems to be a CORS issue.

submit:1 Access to XMLHttpRequest at 'https://ipfs.district0x.io/api/api/v0/add?arg=' from origin 'https://registry.district0x.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://ipfs.district0x.io/api/api/v0/add?arg= net::ERR_FAILED
ERROR [district.ui.logging.events:39] - Uploading district bg image failed :district-registry.ui.events/add-district-bg-image {:status 0, :success false, :body "", :headers {}, :trace-redirects ["https://ipfs.district0x.io/api/api/v0/add?arg=" "https://ipfs.district0x.io/api/api/v0/add?arg="], :error-code :http-error, :error-text " [0]"}

i'm flying a bit blind here, but it sounds like ipfs.district0x.io/api server needs CORS Policy applied to allow calls from registry.district0x.io Thats just a guess.

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

No branches or pull requests

1 participant