ajones05 / seearound.me-ionic

0 stars 0 forks source link

Change API URLs schema http -> https #214

Open yuriyua opened 7 years ago

yuriyua commented 7 years ago

@abdulhafeez Can you change the API urls schema to https?

abdulhafeez commented 7 years ago

I changed the url to https://www.seearound.me/mobile but it is not working. screenshot 2017-04-11 23 51 19

abdulhafeez commented 7 years ago

http is still working.

yuriyua commented 7 years ago

weird... it works for me 2017-04-11_22h23_38

abdulhafeez commented 7 years ago

Hmm, the problem may be on my side. Perhaps some headers. I'll see what is wrong.

yuriyua commented 7 years ago

ok, let me know if I should make any changes

abdulhafeez commented 7 years ago

@yuriyua https requests from web to web are different from mobile to web. We usually have Access-Control-Allow-Origin header issues. Normally, CORS is enabled on server side to cope with security issues. Have you enabled CORS?

yuriyua commented 7 years ago

Done. http://www.test-cors.org/#?client_method=POST&client_credentials=false&server_url=https%3A%2F%2Fwww.seearound.me%2Fmobile%2Flogin&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

abdulhafeez commented 7 years ago

Still not working. Do I need to include any specific headers? Auth headers etc.?

abdulhafeez commented 7 years ago

I am guessing there is some problem with your SSL settings on server side. See this question on stackoverflow: http://stackoverflow.com/questions/34672916/https-request-using-ionicframework-and-ngcordova?noredirect=1&lq=1

and this: https://www.ssllabs.com/ssltest/analyze.html

abdulhafeez commented 7 years ago

I tried it on iOS now where the browser is Safari. It worked alright. So, the issue is only with Android. Remember, we are using CrossWalk for android version which is a special browser designed to make browser based (hybrid) apps faster on android devices.

yuriyua commented 7 years ago

Let me know if I should make any changes

ajones05 commented 7 years ago

Has this been resolved / can I close?

abdulhafeez commented 7 years ago

No, its not working for Android yet.