facebook

Native app + ajax + ssl

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #339816 Reply

    renato.guiglia
    Participant

    Hi, 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

    #339819 Reply

    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.

    #339829 Reply

    renato.guiglia
    Participant

    @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

    #339844 Reply

    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.

    #340339 Reply

    renato.guiglia
    Participant

    @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.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Native app + ajax + ssl

You must be logged in to post in the forum log in