Skip to content

any way to edit the response headers (or somehow disable X-Frame-Options)? #1371

@Phouter0499

Description

@Phouter0499

Specification

  • pywebview version: 5.1
  • operating system: Windows 11
  • web renderer: EdgeChromium

Description

I am trying to load a webpage into an iframe element by simply updating the src attribute. However, I notice I am getting the "Refused to display 'https://www.example.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'."
It looks there was a related question where OP asked whether X-Frame-Options can be disabled but he wasn't using the same renderer as I am using. Anyways, I tried to use bottle in someway where I can process the response object before the browser does but I have yet to figure out how.

Practicalities

  • YES/NO I am willing to work on this issue myself.
    YES
  • YES/NO I am prepared to support this issue financially.
    NO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions