0

I know below issue was mentioned many times here but I'm still facing the issue with AJAX call after change protocol from HTTP to HTTPS.

My AJAX call that works on HTTP looks like that:

   var dataToSend = {userEmail: "some.email@email.com"} 
   $.ajax({
     type: "POST",
     contentType: "application/json; charset=utf-8",
     url: "/Service/AplicationService.svc/MethodName",
     data: JSON.stringify(dataToSend),
     dataType: "json",
     success: handleSuccess,
     error:handleError
    })

When I use HTTP protocol it works, but after I change to HTTPS protocol it return 404 Not Found. I'm using MVC on .NET Framework on backend side.

Can somebody help fix this, please?

EDIT:

I tried add dummy html file into Service path and call this file using https protocol. HTML opened so I think the issue is in service file that block/not allow CROSS Origin calls - how can I turn it on?

Sepcio
  • 235
  • 1
  • 6
  • 17

0 Answers0