Hi, im trying to implment the otp authenctiaction on my jquery plugin for one of our sites.
my code looks somthing like this:
Code:
$.get( "http://api2.yubico.com/wsapi/2.0/verify?id=" + YUBICOID + "&otp=" + yubicoString + "&nonce="+ YUBICOSECRET, function( data ) {
// $( ".result" ).html( data );
// alert( "Load was performed." );
console.log(data);
});
But all i get is xmlhttprequest cannot load server. what am i missing here?
This is the exact error:
Code:
XMLHttpRequest cannot load http://api.yubico.com/wsapi/2.0/verify?id=32348&otp=ccccccgdkickujihrklfjrhrculhlvdrklthdblbfkrt&nonce=jTrqZ9jY9pRPSRIzpTVyqGPqmYU. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63343' is therefore not allowed access.