- This topic has 4 replies, 2 voices, and was last updated 11 years, 4 months ago by renato.guiglia.
-
AuthorPosts
-
renato.guigliaParticipantHi, is it possible to make an ajax call using https?
I use http calls to php pages using the header header(“Access-Control-Allow-Origin: *”);, but configuring apache with SSL it doesn’t work (IMPORTANT: i don’t use a real certificate but a self-signed one).
Thank you for your help,
Renato
support-octavioMemberHi Renato,
Just to be clear and understand well the problem:
Are you creating a native app or a web app?
if it’s native app – all should work even w/o CORS headers
if it’s web app – we need more info, like: where web app hosted, what is CORS header request, what site it’s trying to access – Also, it would be great to have simple demo file.
renato.guigliaParticipant@support-octavio wrote:
Hi Renato,
Just to be clear and understand well the problem:
Are you creating a native app or a web app?
if it’s native app – all should work even w/o CORS headers
if it’s web app – we need more info, like: where web app hosted, what is CORS header request, what site it’s trying to access – Also, it would be great to have simple demo file.It’s a native app.
It works with http calls, now i should change my endpoint in https.
I configured apache with a self signed certificate: accessing my pages using native app has an error, using a browser it ask a confirmation for the certificate.
I don’t know if the problem is connecting using https or my self-signed certificate server side.
Thank you for your help.Renato
support-octavioMemberHi Renato,
Your problem’s description looks very similar to this stackoverflow thread
It seems to be a problem in your self-signed cert, plese try to load something from https resource with valid SSL cert to check it.
renato.guigliaParticipant@support-octavio wrote:
Hi Renato,
Your problem’s description looks very similar to this stackoverflow thread
It seems to be a problem in your self-signed cert, plese try to load something from https resource with valid SSL cert to check it.
thank you octavio, i’ll try and i’ll post the answer.
-
AuthorPosts