1. 3
  1.  

  2. 1

    If you’re writing a CSP then you can use its frame-ancestors directive instead of using X-Frame-Options.

    https://www.w3.org/TR/CSP2/#frame-ancestors-and-frame-options