Documentation - commentsUntitled2021-10-12T14:04:06Zhttps://extensions.sondages.pro/development-and-example/extend-remotecontrol-api/documentation#comment1352021-10-12T14:04:06Z<p>Your LimeSurvey version and buildnumber ?</p>
<p>Else : did you try to update <code class="spip_code" dir="ltr">noCsrfValidationRoutes</code> ?</p>Documentation2021-10-12T14:01:03Zhttps://extensions.sondages.pro/development-and-example/extend-remotecontrol-api/documentation#comment1342021-10-12T14:01:03Z<p>Hi, I am using your plugin to extend the remote control. But when I try to connect, it's giving me this error. <br class="autobr" />
The CSRF token could not be verified.</p>
<p>code<br class="autobr" />
// limesurvey remotecontrol API connection<br class="autobr" /> include_once ('org/jsonrpcphp/JsonRPCClient.php');<br class="autobr" /> $url = 'localhost/limesurvey_ql3/index.php/admin/pluginhelper?plugin=extendRemoteControl&sa=sidebody&method=actionIndex';<br class="autobr" /> define( 'LS_BASEURL', $url); // adjust this one to your actual LimeSurvey URL<br class="autobr" /> define( 'LS_USER', 'admin' ); // limesurvey admin username<br class="autobr" /> define( 'LS_PASSWORD','admin'); // limesurvey admin password</p>
<p> // instantiate a new client<br class="autobr" /> $myJSONRPCClient = new org\jsonrpcphp\JsonRPCClient( $url );</p>