{"id":19664887,"url":"https://github.com/small-tech/subresource-integrity-spike","last_synced_at":"2026-06-18T14:31:23.700Z","repository":{"id":117560793,"uuid":"325053089","full_name":"small-tech/subresource-integrity-spike","owner":"small-tech","description":"A quick spike to test subresource integrity behaviour on the same domain and via ESM imports.","archived":false,"fork":false,"pushed_at":"2020-12-28T15:56:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T03:50:04.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/small-tech.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-28T15:53:08.000Z","updated_at":"2020-12-28T15:56:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3323e8ab-76cf-4a2a-a852-b48d5169ddd1","html_url":"https://github.com/small-tech/subresource-integrity-spike","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/small-tech/subresource-integrity-spike","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsubresource-integrity-spike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsubresource-integrity-spike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsubresource-integrity-spike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsubresource-integrity-spike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/small-tech","download_url":"https://codeload.github.com/small-tech/subresource-integrity-spike/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/small-tech%2Fsubresource-integrity-spike/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34495377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-11T16:19:30.359Z","updated_at":"2026-06-18T14:31:23.613Z","avatar_url":"https://github.com/small-tech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subresource Integrity Spike\n\nTo test:\n\n  - Subresource integrity behaviour on same domain (as it is only documented for cross domain use).\n  - Subresource integrity behaviour with ES6 EcmaScript Module (ESM) imports.\n\n## Install\n\nClone this repository and run:\n\n```\nnpm install\n```\n\n## Usage\n\nRun the server with:\n\n### Passing integrity check\n\n```\nnpm run passing\n```\n\n### Failing integrity check\n\n```\nnpm run failing\n```\n\n## Tested with:\n\n  - Firefox 84.0 (Gecko)\n  - Ungoogled Chromium 87.0.4280.88 (Blink)\n  - Epiphany 3.28.6 (WebKit)\n\nAll tests run on elementary OS 5.1.7.\n\n## Observations\n\n  - Subresource integrity works when script is loaded from the same domain (Gecko, Blink, WebKit)\n  - When subresource integrity is specified on a `script` tag, it is also blocked in a subsequent `import` attempt from a separate `script` tag in Gecko and Blink but __not__ in WebKit (at least with the version in Epiphany. Not tested with Safari.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Fsubresource-integrity-spike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmall-tech%2Fsubresource-integrity-spike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmall-tech%2Fsubresource-integrity-spike/lists"}