fetch(BaseURL + type, {
method: 'GET',
headers: {
'Authorization': 'Bearer' + token
}
}
When I use GET
method it changes the method to OPTIONS
. Works fine with Safari. Sometimes when I refresh the page, it shows GET method but most of the time it shows OPTIONS 200ok
status and returns no data.