Unable to make API calls in React
I am trying to work on my React Learning project, which makes an API call over the server for the posts and other stuff.
But during the API call, the react is throwing an error "Not allowed to request resource".
While on local machine, it goes well. I guess there is some replit restriction for API calls. Can you please suggest a way to fix this issue.
looks like your issue is that for the URL that you're fetching, it's an HTTP URL, which means that it isn't secure, you probably need to change your http:\//codial... URLs to be https://codial...