i'm using AXIOS to fetch the data from REST API. if set manually on the browser, it gave me the detail.json. When i fetch it using axios from CRA, it blocked by CORS. I found that using REST API needs to use headers, so i tried fetch it with headers like the example, it still blocked by CORS.
i'm using AXIOS to fetch the data from REST API. if set manually on the browser, it gave me the detail.json. When i fetch it using axios from CRA, it blocked by CORS. I found that using REST API needs to use headers, so i tried fetch it with headers like the example, it still blocked by CORS.