Disable Cookies Inside A Frame/Iframe

前端 未结 3 1817
心在旅途
心在旅途 2021-01-11 23:48

Is there any way to programatically disable cookies being created by a page displayed inside of a frame/iframe? Or to generalise further, is it possible to programatically d

3条回答
  •  灰色年华
    2021-01-12 00:18

    The only way you could change that for an external website you have no control over is to retrieve the pages using a server-side script, filter the input and display it to the user (ie: act as a proxy).

    You just can't modify sites out of your domain (or subdomain - it might depend on the browser) using J/S for security reasons.

提交回复
热议问题