{"id":17086359,"url":"https://github.com/alex-d/supports-iframe","last_synced_at":"2025-05-08T19:38:29.118Z","repository":{"id":145772870,"uuid":"286585522","full_name":"Alex-D/supports-iframe","owner":"Alex-D","description":"Tell if a URL can be loaded in an iframe","archived":false,"fork":false,"pushed_at":"2022-12-05T16:42:20.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-31T17:55:03.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"supports-iframe.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alex-D.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Alex-D","patreon":"AlexandreDemode","custom":"https://paypal.me/demodealexandre"}},"created_at":"2020-08-10T21:49:57.000Z","updated_at":"2024-12-31T00:54:34.000Z","dependencies_parsed_at":"2024-04-19T09:47:51.256Z","dependency_job_id":null,"html_url":"https://github.com/Alex-D/supports-iframe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-D%2Fsupports-iframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-D%2Fsupports-iframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-D%2Fsupports-iframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex-D%2Fsupports-iframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex-D","download_url":"https://codeload.github.com/Alex-D/supports-iframe/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253136523,"owners_count":21859795,"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":[],"created_at":"2024-10-14T13:28:25.200Z","updated_at":"2025-05-08T19:38:29.103Z","avatar_url":"https://github.com/Alex-D.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Alex-D","https://patreon.com/AlexandreDemode","https://paypal.me/demodealexandre"],"categories":[],"sub_categories":[],"readme":"# Supports Iframe\n\nA simple API to check if a URL can be loaded inside an iframe.\n\n\n## How it works?\n\nTakes a URL like: http://localhost:8000/api?url={URL}\n\nExample: \u003chttp://localhost:8000/api??url=https://example.com\u003e\n\nAnd checks if the URL follow those rules:\n\n- response status must be a 2xx\n- response headers does not contain `x-frame-options` set to `SAMEORIGIN` nor `DENY`\n\nYou can try it there:\n\n- not a 2xx: \u003chttps://supports-iframe.vercel.app/api?url=https://column-view.com/404\u003e\n- can be loaded: \u003chttps://supports-iframe.vercel.app/api?url=https://monitoror.com\u003e\n- cannot be loaded: \u003chttps://supports-iframe.vercel.app/api?url=https://google.com\u003e\n\n\n## See it in action\n\nThis project is used by [Column View](https://column-view.com), a tool that helps you view the mobile version of your website directly in multiple columns or helps you check multiple pages at once.\n\n\n## Development\n\nTo run dev server, use `vercel dev` (`npm i -g vercel` if needed)\n\n\n## Author\n\n\u003ctable\u003e\n\u003ctbody\u003e\n  \u003ctr width=\"100%\"\u003e\n    \u003ctd align=\"center\" width=\"100%\"\u003e\n      \u003ca href=\"https://github.com/Alex-D\"\u003e\n        \u003cimg src=\"https://avatars2.githubusercontent.com/u/426843?s=150\u0026v=4\" alt=\"\"\u003e\u003cbr\u003e\n        @Alex-D\n      \u003c/a\u003e \u003cbr\u003e\n      \u003cstrong\u003eAlexandre Demode\u003c/strong\u003e\u003cbr\u003e\n      \u003cem\u003eDevelopment\u003c/em\u003e\u003cbr\u003e\n      \u0026bull; \u0026bull; \u0026bull;\u003cbr\u003e\n      https://twitter.com/AlexandreDemode\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\n\n## License\n\nThis project is licensed under the MIT License - see [the LICENSE file](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-d%2Fsupports-iframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-d%2Fsupports-iframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-d%2Fsupports-iframe/lists"}