Yubico Forum https://forum.yubico.com/ |
|
Integrating OTP with yubikey 4 https://forum.yubico.com/viewtopic.php?f=35&t=2606 |
Page 1 of 1 |
Author: | dokuroc [ Sun Mar 19, 2017 1:01 pm ] |
Post subject: | Integrating OTP with yubikey 4 |
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.
|
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |