Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 10:27 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Mar 19, 2017 1:01 pm 
Offline

Joined: Sun Mar 19, 2017 12:58 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group