next-safe icon indicating copy to clipboard operation
next-safe copied to clipboard

[BUG]: frameOptions: false not working

Open johanhermansson opened this issue 2 years ago • 0 comments

Describe the bug

When I set frameOptions: false the library still return the X-Frame-Options header.

The PR https://github.com/trezy/next-safe/pull/38 solves this problem by checking if the right value param is false 😄 , but maybe we should check both the key and value param for false?

Steps To Reproduce

  1. Create new Next.js app
  2. Setup next-safe:
    nextSafe({
        frameOptions: false
    })
    
  3. Start app
  4. Still see X-Frame-Options header in response

Version

v3.x.x

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

johanhermansson avatar Apr 01 '22 08:04 johanhermansson