Welcome Guest, Not a member yet? Register   Sign In
Enable CORS from my machine to codeigniter 3 on server
#1

Hi,
i'm testing a webapp based on angular and i would get some information from my site on my server DB.

When i try an ajax request from my machine(angular) to my domain server i obtain this error: 
Access to XMLHttpRequest at 'https://fxxx.it/xxxx' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

I have tried all possible headers in my controller (where the ajax do the request) but nothing works.

Someone have a solution about that?

Thanks for help.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB