Got error when fetch using axios in forwarding url

What is the name of the domain?

image.example.com

What is the issue you’re encountering

Hello everyone, I have a question. I am using URL forwarding to redirect requests to an S3 object storage on a hosting provider. For example, a request to https://image.example.com/1.json is forwarded to https://hostingprovider.com/1.json. The setup works perfectly when tested in the browser and redirects as expected. However, when I try to fetch the URL using Axios in a React.js web application, I encounter a CORS error when fetching from https://image.example.com/1.json. But when fetching directly from the hosting provider’s URL, everything works fine. Is there any solution for this?

What feature, service or problem is this related to?

I don’t know

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.