XHR from another domain to a https server

113 views Asked by At

I have a server on heroku, using https certificate. Now I am trying to build an IOS/Android app using Ionic framework and make connection to that heroku server.

The error when I do it is "ERR CONNECTION REFUSED" when I am trying to do https://example.com/auth

And when I change it to http instead, the error is XMLHttpRequest cannot load http://example.com/auth. The request was redirected to 'https://www.example.com/auth', which is disallowed for cross-origin requests that require preflight.

Thanks for any help.

0

There are 0 answers