GET request with Basic Auth working from Postman but not from the browser

前端 未结 3 1384
眼角桃花
眼角桃花 2021-01-05 23:44

I\'m working with an odata api, and when I\'m using postman to do a GET request, works perfect and I get the response as I was expecting.

But when I use a fetch req

3条回答
  •  -上瘾入骨i
    2021-01-06 00:16

    You are experiencing a CORS issue, in order to get past it you need to enable CORS on your backend.

提交回复
热议问题