I have a backend something like this: https://exmple.net/login. When I send request from my ionic 2 app to backend via ios device or simulator , I am getting following error:
Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made.
Do I have to embed SSL certificate inside of ionic app or do I have to do something else?
After I set Allow-Control-Origin:*, it is working in POSTMAN and browser. But I know it is not a safe way.
I have already had ssl certificate from backend but I donāt know what should I do with it right now.
And after executing this request I am getting following error on IOS device or simulator
Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made.
And after executing same request on web I am getting following error:
XMLHttpRequest cannot load https://exmple.net/login. It has been blocked by CORS policy: No āAccess-Control-Allow-Originā header is present on the requested resource. Origin āhttp://localhost:8100ā is therefore not allowed access.