3box-js icon indicating copy to clipboard operation
3box-js copied to clipboard

Box.getProfiles fails with a CORS error on localhost

Open tibetsprague opened this issue 6 years ago • 5 comments

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

tibetsprague avatar Nov 12 '19 20:11 tibetsprague

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 avatar Nov 13 '19 12:11 oed

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

Kharabet avatar Sep 10 '20 13:09 Kharabet

Any Updates on this?

ChaituVR avatar Dec 02 '20 07:12 ChaituVR

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?

dievardump avatar Dec 14 '20 12:12 dievardump

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

ChaituVR avatar Dec 14 '20 12:12 ChaituVR