I am using CodeIgniter REST API with Angular frontend.
I tried to fetch and post data with REST API, but CORS error occurs in console, and I installed chrome CORS extension and enabled to solve the problem.
When I moved files to the remote host, same error occurs again.
Files hosted on a different server than the REST API.
for example:
frontend: http://frontend.com
RestApi: http://ipaddress.com
I tried to enable the CORS in .htaccess
and HTTP headers through PHP, to no avail.