Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Box.getProfiles fails with a CORS error on localhost #649

Open
tibetsprague opened this issue Nov 12, 2019 · 5 comments
Open

Box.getProfiles fails with a CORS error on localhost #649

tibetsprague opened this issue Nov 12, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@tibetsprague
Copy link

tibetsprague commented Nov 12, 2019

Describe the bug
When I try to call Box.getProfiles in my dev environment I get the following error:
Access to fetch at 'https://ipfs.3box.io/profileList' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.

To Reproduce
Try to call Box.getProfiles

Expected behavior
No error

Desktop (please complete the following information):

  • OS: macOS Mojave
  • Browser: Chrome
  • Version: 78.0.3904.97
@oed
Copy link
Member

oed commented Nov 13, 2019

Thanks for creating a ticket for this! We are working on an update to our APIs and hopefully that will fix this. Will let you know when that is ready to see if this issue is fixed.
In the meantime using Box.getProfile should work fine :)

@oed oed added the bug Something isn't working label Nov 27, 2019
@Kharabet
Copy link

Are there any updates on this issue? I have the same problem

@ChaituVR
Copy link

ChaituVR commented Dec 2, 2020

Any Updates on this?

@dievardump
Copy link

dievardump commented Dec 14, 2020

Hello, anyway to do something for this? the OPTIONS request (called a preflight request - which is default browser behavior) doesn't go through, wich blocks any POST request.

This is a one year old ticket, could something be done about this?

@ChaituVR
Copy link

@dievardump I've ended up using 3Box's Graphql API instead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants