Change the X-Frame-Options to allow all domains

后端 未结 3 557
余生分开走
余生分开走 2021-02-04 00:56

I am trying to use some site of mine as an iframe from a different site of mine.

My problem is- the other site is always consistently changes his IP address

3条回答
  •  终归单人心
    2021-02-04 01:52

    If you set it, then you can only set it to DENY, SAMEORIGIN, or ALLOW-FROM (a specific origin).

    Allowing all domains is the default. Don't set the X-Frame-Options header at all if you want that.

    Note that the successor to X-Frame-Options — CSP's frame-ancestors directive — accepts a list of allowed origins so you can easily allow some origins instead of none, one or all.

提交回复
热议问题