+ 1

Expressjs api

why ( https://expressjs--3111.local.webcontainer.io) api in postman for GET request returns unexpected '<' instead of text message when i fetch this api from react i have cors issue and i can't solveit,i tried everything I already searched it in Google but to not avail

13th Nov 2021, 3:45 PM
Coder21
Coder21 - avatar
3 ответов
+ 1
corsanywhere
14th Nov 2021, 10:04 AM
Gordon
Gordon - avatar
0
Gordon thanks,but postman doesn’t have origin,it shouldn’t have cors issues.maybe it’s happens because I am using Chrome extension-postman. or maybe the reason is the fact that i use online web editor Stackblitz for express server? thanks in advance))
18th Nov 2021, 6:42 AM
Coder21
Coder21 - avatar
0
Append your target API url after this string: "https://cors-anywhere.herokuapp.com" And fetch with new url.
18th Nov 2021, 12:52 PM
Gordon
Gordon - avatar