[英]If my app is being loaded by iframe - can I detect it?
I didn't find the information about this topic in google. 我在Google中找不到有关此主题的信息。 Can I detect if my (Rails) application is being loaded from iframe?
我可以检测是否从iframe加载了我的(Rails)应用程序吗? If yes, can I obtain the url of the iframe?
如果是,我可以获取iframe的网址吗? I'd like to do it by both javascript and on the server if it's not possible, if not - whatever way is easier.
我想通过javascript和在服务器上同时执行此操作(如果无法执行)-无论哪种方式都更容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.