Welcome to the LimeSurvey Community Forum

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

Can I Embed LimeSurvey in another site

  • bshores
  • bshores's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 8 months ago #171780 by bshores
This previous post on this said to use an iFrame, but that has been broken by the CSRF tokens logic you have now. When you use an iFrame, that token is considered a 3rd party token which modern browsers have started blocking. As of writing this, Safari, iOS Webviews, and Android Webviews all seem to block it, Chrome does not.

That means I cannot embed your survey in a site with the iFrame method. Turning off that setting is not possible either as it's a "Security setting" and any reasonable customer will not allow themselves to be less secure. (One of those, shoot yourself in the foot deals)

I could really use another option for embedding surveys that would work.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 8 months ago #171790 by Joffm
Replied by Joffm on topic Can I Embed LimeSurvey in another site
Hi,
as far as I understand you want to embed a survey.

Well, I do not see any problem in Firefox, Edge, and IE using iframes:

(This original page was just to test stacked tabs.)

What is your setting of "iframe embedding allowed"?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • bshores
  • bshores's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #171894 by bshores
Replied by bshores on topic Can I Embed LimeSurvey in another site
Try Safari. The setting that is defaulted on which blocks this can be found under Preferences -> Privacy -> Block Cookies "From third parties and advertisers". That "third parties" part is an iFrame.

Both iOS and Android webviews also have this blocking on by default. I have not found a setting in iOS(a documented one at least) that will allow you to turn this on.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 7 months ago #171929 by LouisGac
Replied by LouisGac on topic Can I Embed LimeSurvey in another site
well, just install Limesurvey in the same server and under the same url as the website, it should work:
www.ravelrumba.com/blog/third-party-cookies/

else, test if browser accept third party cookie, and if not, open the survey in a popup:
github.com/gamejolt/issue-tracker/issues/1076

else create at theme for your survey that "copy" the website appearance (menus, etc) so people doesn't realize they changed url.
The topic has been locked.
  • bshores
  • bshores's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 7 months ago #171943 by bshores
Replied by bshores on topic Can I Embed LimeSurvey in another site
All good thoughts. We're basically going more the popup route. I was able to finally get the pass-thru values working. Not fully like it's documented, but enough. That let me passthru the info I needed on the callback URL so I can identify the session. Thanks for the help
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose