Detect if a page is within a iframe - serverside

后端 未结 5 1739
无人及你
无人及你 2021-01-03 22:22

How can I detect server-side (c#, asp.net mvc) if the loaded page is within a iframe? Thanks

5条回答
  •  梦谈多话
    2021-01-03 22:46

    This is not possible, however.

    
    

    and then check serverside if the querystring contains iframe=yes or with the Referer header send by the browser.

提交回复
热议问题