Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: Error "Access-Control-Allow-Origin header not found"

$
0
0

It is better to use http instead of https.  Because https is a secure protocol to consume service from database.

 

Please find below codes to solve your issue, I hope this will helpful to you.

 

$.ajax({

  url
:'https://,
  data
: myData,
  type
:'GET',
  crossDomain
:true,
  dataType
:'jsonp',
  success
:function(){ alert("Success");},
  error
:function(){ alert('Failed!');},
  beforeSend
: setHeader
});

 

 

 

Regards,

Karthik A


Viewing all articles
Browse latest Browse all 3585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>