Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

A way to allow iframe survey with different domain in limesurvey v3

  • priza
  • priza's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #194578 by priza
we had an iframe for surveys in different domains. since the last update (after 3.18) the iframed survey gives 400error.
looking through forums and also this bug report: bugs.limesurvey.org/view.php?id=9634

we tried solutions in config.php but nothing worked. can somebody help?
thanx in advance

debug code:
Code:
CHttpException
 
Ήταν αδύνατη η επαλήθευση του συμβόλου CSRF.
 
/home/prorataonlinesur/public_html/framework/web/CHttpRequest.php(1378)
 
1366
1367             if (!empty($maskedUserToken) && $cookies->contains($this->csrfTokenName))
1368             {
1369                 $securityManager=Yii::app()->getSecurityManager();
1370                 $maskedCookieToken=$cookies->itemAt($this->csrfTokenName)->value;
1371                 $cookieToken=$securityManager->unmaskToken($maskedCookieToken);
1372                 $userToken=$securityManager->unmaskToken($maskedUserToken);
1373                 $valid=$cookieToken===$userToken;
1374             }
1375             else
1376                 $valid = false;
1377             if (!$valid)
1378                 throw new CHttpException(400,Yii::t('yii','The CSRF token could not be verified.'));
1379         }
1380     }
1381
1382
1383     /**
1384      * Returns the version of the HTTP protocol used by client.
1385      *
1386      * @return string the version of the HTTP protocol.
1387      * @since 1.1.16
1388      */
1389     public function getHttpVersion()
1390     {
 
Stack Trace
#0     
+
 /home/prorataonlinesur/public_html/framework/base/CComponent.php(561): CHttpRequest->validateCsrfToken(CEvent)
#1     
+
 /home/prorataonlinesur/public_html/framework/base/CApplication.php(212): CComponent->raiseEvent("onbeginrequest", CEvent)
#2     
+
 /home/prorataonlinesur/public_html/framework/base/CApplication.php(183): CApplication->onBeginRequest(CEvent)
#3     
/home/prorataonlinesur/public_html/index.php(194): CApplication->run()
 
189 require_once APPPATH . 'core/LSYii_Application' . EXT;
190
191 $config = require_once(APPPATH . 'config/internal' . EXT);
192
193 Yii::$enableIncludePath = false;
194 Yii::createApplication('LSYii_Application', $config)->run();
195
196 /* End of file index.php */
197 /* Location: ./index.php */
 
2020-02-25 15:28:21 Apache Yii Framework/1.1.22-dev
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose