{"id":13629929,"url":"https://github.com/niutech/x-frame-bypass","last_synced_at":"2025-05-15T11:06:16.250Z","repository":{"id":44759035,"uuid":"164376751","full_name":"niutech/x-frame-bypass","owner":"niutech","description":"Web Component extending IFrame to bypass X-Frame-Options: deny/sameorigin","archived":false,"fork":false,"pushed_at":"2024-08-19T19:28:06.000Z","size":16,"stargazers_count":715,"open_issues_count":42,"forks_count":296,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-12T03:46:03.491Z","etag":null,"topics":["custom-element","iframe","web-component","x-frame-options"],"latest_commit_sha":null,"homepage":"https://niutech.github.io/x-frame-bypass/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niutech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-07T04:08:58.000Z","updated_at":"2025-05-06T14:32:02.000Z","dependencies_parsed_at":"2024-09-24T16:01:32.439Z","dependency_job_id":"fa64d028-f014-4fbd-9ccd-0f4da50016d8","html_url":"https://github.com/niutech/x-frame-bypass","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.2142857142857143,"last_synced_commit":"6d516e69d3b922272fd88e6e429086fcbec63c6d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niutech%2Fx-frame-bypass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niutech%2Fx-frame-bypass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niutech%2Fx-frame-bypass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niutech%2Fx-frame-bypass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niutech","download_url":"https://codeload.github.com/niutech/x-frame-bypass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328385,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-element","iframe","web-component","x-frame-options"],"created_at":"2024-08-01T22:01:24.578Z","updated_at":"2025-05-15T11:06:16.202Z","avatar_url":"https://github.com/niutech.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# X-Frame-Bypass\n\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/x-frame-bypass)\n\nX-Frame-Bypass is a [Web Component](https://www.webcomponents.org/introduction), specifically a [Customized Built-in Element](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example), which extends an IFrame to bypass the [`X-Frame-Options: deny/sameorigin`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) response header. Normally such headers prevent embedding a web page in an `\u003ciframe\u003e` element, but X-Frame-Bypass is using a CORS proxy to allow this.\n\n## Usage\n\n1. (Optional) Include the [Custom Elements with Built-in Extends polyfill](https://github.com/ungap/custom-elements-builtin) for Safari:\n\n\t\t\u003cscript src=\"https://unpkg.com/@ungap/custom-elements-builtin\"\u003e\u003c/script\u003e\n\n2. Include the X-Frame-Bypass JS module:\n\n\t\t\u003cscript type=\"module\" src=\"https://unpkg.com/x-frame-bypass\"\u003e\u003c/script\u003e\n\n3. Insert the X-Frame-Bypass Custom Element:\n\n\t\t\u003ciframe is=\"x-frame-bypass\" src=\"https://example.org/\"\u003e\u003c/iframe\u003e\n\n## Demo\n\nSee the [Hacker News using X-Frame-Bypass](https://niutech.github.io/x-frame-bypass/). Supported are current versions of Chrome and Firefox browsers. Edge and Safari do not support Customized Built-in Elements yet.\n\n## License\n\n\u0026copy; 2019 Jerzy Głowacki under Apache License 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniutech%2Fx-frame-bypass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniutech%2Fx-frame-bypass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniutech%2Fx-frame-bypass/lists"}