{"id":16256521,"url":"https://github.com/janniks/iframe-csp-tester","last_synced_at":"2026-03-18T18:39:49.034Z","repository":{"id":196648164,"uuid":"696836690","full_name":"janniks/iframe-csp-tester","owner":"janniks","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-26T14:45:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T13:32:43.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janniks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-26T14:20:43.000Z","updated_at":"2023-09-26T14:21:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbb91edf-e97f-4e80-b288-50cee6fbfa17","html_url":"https://github.com/janniks/iframe-csp-tester","commit_stats":null,"previous_names":["janniks/iframe-csp-tester"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janniks/iframe-csp-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fiframe-csp-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fiframe-csp-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fiframe-csp-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fiframe-csp-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janniks","download_url":"https://codeload.github.com/janniks/iframe-csp-tester/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janniks%2Fiframe-csp-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T15:45:28.578Z","updated_at":"2026-01-20T13:32:49.959Z","avatar_url":"https://github.com/janniks.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iframe-tester\n\n`npm install`\n\n`npx serve main` (Main Site/Extension) http://localhost:3000\n\n`npx nodemon server.js` (API/Server) http://localhost:3001\n\n## Goals\n\n- stop cross frame communication\n- stop arbitrary network requests (only recursive requests to the same domain)\n- stop top level navigation (changing main url)\n- stop clickjacking?\n- allow scripts (for animation)\n- allow stylesheets\n- allow nesting\n\n## Measures\n\n- API CSP:\n  - `\"default-src 'unsafe-inline' data: blob: http://api.hiro.so;\"`, which only inline content or recursive API calls\n    - Note: Is `data:` unsafe for our use-case?\n    - Ideally the hostname would be specific enough to not cover other products.\n- iframe props:\n  ```\n  sandbox=\"allow-scripts\"\n  referrerpolicy=\"no-referrer\"\n  credentialless\n  ```\n  - `sandbox` disables most dangerous features, but we explicitly allow scripts\n  - `referrerpolicy` prevents the iframe from sending the referrer header (unclear if needed in combination with CSP)\n  - `credentialless` runs the iframe in an ephemeral frame (experimental feature with little support)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanniks%2Fiframe-csp-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanniks%2Fiframe-csp-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanniks%2Fiframe-csp-tester/lists"}