Ionic 2 Post Request CORS error: The request was redirected to 'http://localhost:8100/', which is disallowed for cross-origin requests that require preflight

I am using Laravel as my backend api and I have already made the backend use CORS middleware to handle the CORS issues. However I have one request that when I make it, after already logging into my app and retrieving data using 2 other requests it does not work because of the following error.

The request was redirected to ‘http://localhost:8100/’, which is disallowed for cross-origin requests that require preflight.

Any ideas of where to start? Thank you.

1 Like