添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Forum Discussion

Anton P
New member | Level 2
3 years ago

CORS error on any endpoint

After successful authorization and getting the token I try to test it by fetching basic '/user' endpoint and I always get CORS error. Chrome Browser.

1) with preflish request:

2) Without preflight request:

What am I doing wrong, please help!

  • OK, I figured that out. Silly mistake. Appears that ' api.dropboxapi.com/2/check/user'

    is a POST method while I was sending a GET request. The mistake would be avoided if the documentation stated that it's a POST message instead of just specifying that in a curl example which I haven't looked at.