How to login from OneCompiler in an iframe
I can't log in from the OneCompiler site in an iframe. Is there a better way?
2 Answers
@nojuku
Understand your usecase, but due to the security reasons, we had to disable login from iFrames.
We recommend leveraging OneCompiler orgs for your use case. Where you can create and assign challenges to the users.
I am a teacher. I have created a page of HTML coding test questions as a teaching tool on the web. On the right side of the page, there is a list of questions, and the student selects a question and enters his/her answer in the OneCompiler embedded in an iframe on the left side of the page. However, since students cannot log in, their answers are only temporarily displayed, and when the page is refreshed, the answers are deleted.
Teachers can log into the regular OneCompiler, which is not embedded in an iframe, but they cannot review their students' responses later because the students' responses are not saved.
If possible, it would be very helpful if the student responses could remain in the OneCompiler within the iframe.