Welcome to the LimeSurvey Community Forum

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

remove 401 error for survey inside iframe

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185970 by DenisChenu
Replied by DenisChenu on topic remove 401 error for survey inside iframe
Currently, survey is not activated, then i can‘t check again. But i think @Joffm use Chrome.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • gtardy
  • gtardy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #185975 by gtardy
Replied by gtardy on topic remove 401 error for survey inside iframe
I have enabled preview for non admins.

And I found out one interesting thing :
In an iframe cross-domain ( pilierpublic.com/fr/survey_in_frame ), while the Next button fails in Chrome, it works fine in Firefox & Internet Explorer.

The problem in Chrome (when clicking on Next) shows up in the console as Error 400 :
VM12907 pjax.js:1302 POST lifestooeasy.com/survey/index.php/867832?1561390340470 400
module.exports @ VM12907 pjax.js:1302
loadUrl @ VM12907 pjax.js:286
formAction @ VM12907 pjax.js:751
(anonymous) @ VM12907 pjax.js:769
The topic has been locked.
  • gtardy
  • gtardy's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #185976 by gtardy
Replied by gtardy on topic remove 401 error for survey inside iframe
manual.limesurvey.org/Global_settings#Security
explains further about IFrame embedding :
Theoretically, it is working. However, this function might not work
when it is enabled because it heavily depends on the used web browser
and whether it allows iframes or not.

Which reinforces my belief that one cannot rely on this feature, and thus it is best to avoid iframes (or at the very least put them on the SAME domain).
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185977 by Joffm
Replied by Joffm on topic remove 401 error for survey inside iframe
Just to add something:
There is another thread about iframes here
www.limesurvey.org/forum/can-i-do-this-w...rvey-in-another-site

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 9 months ago #185988 by DenisChenu
Replied by DenisChenu on topic remove 401 error for survey inside iframe
Chromium Version 73.0.3683.86




But please : try to remove ajax too …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose