This topic is locked
[SOLVED]

embed phpruner Add Record into external website within iframe

2/6/2022 4:03:24 PM
PHPRunner General questions
R
rkgee author

I have a simple feedback/comments phprunner project. A non-logged-in Guest can submit a new record whereas a logged in Admin individual can also view/edit records and list page. It all works fine.

I am embedding the Add Record page in an iframe on another website. The page apears fine, but when I try to submit a new comments record, it just reports the "Your session has expired.Login to save data". error. As it doesn't require a login to submit a new record, I don't understand why it's producing the error. Additionally, if I go ahead and try to login (within the iframe webpage) It smply doesn't login - it just returns the Guest back to the phprunner menu page within the iframe.

Any ideas what we can do to resolve this?

Sergey Kornilov admin 2/6/2022

Try adding the following line to AfterAppInit event and see if this helps:

$csrfProtectionOff = true;

R
rkgee author 2/6/2022

Yes! Cracked it.....what a star!!!