{"id":19237465,"url":"https://github.com/webrecorder/rwp-cors-helper","last_synced_at":"2025-07-15T11:33:00.773Z","repository":{"id":75541937,"uuid":"272127749","full_name":"webrecorder/rwp-cors-helper","owner":"webrecorder","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-14T03:47:35.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T02:56:07.873Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webrecorder.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}},"created_at":"2020-06-14T03:43:58.000Z","updated_at":"2025-01-17T23:26:19.000Z","dependencies_parsed_at":"2023-03-11T19:59:26.756Z","dependency_job_id":null,"html_url":"https://github.com/webrecorder/rwp-cors-helper","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"664e6a262593e313e82a8a92ad9d914c1fcfa149"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webrecorder/rwp-cors-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrecorder%2Frwp-cors-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrecorder%2Frwp-cors-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrecorder%2Frwp-cors-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrecorder%2Frwp-cors-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webrecorder","download_url":"https://codeload.github.com/webrecorder/rwp-cors-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrecorder%2Frwp-cors-helper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265431544,"owners_count":23764030,"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-11-09T16:26:46.909Z","updated_at":"2025-07-15T11:33:00.728Z","avatar_url":"https://github.com/webrecorder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ReplayWeb.page CORS Helper\n\n\u003cimg src=\"https://replayweb.page/assets/logo.svg\" width=\"24\" height=\"24\"\u003e\n\nThis is an optional, tiny utility script that runs as a [Cloudflare Worker](https://workers.cloudflare.com/), and is designed to improve experience for\nhttps://replayweb.page/ by performing checks that are not possible directly due to CORS restrictions.\n\nIt's main function is to determine if a Google Drive file is publicly available, and if so, resolve the public\nURL and pass back to [ReplayWeb.page](https://replayweb.page/) so that the file can be loaded directly.\nIt does not actually proxy any content.\n\nRunning this script is not required to use [ReplayWeb.page](https://replayweb.page/), without it,\nReplayWeb.page will assume all Google Drive URLs are not public.\n\n### Google Drive Access CORS Check\n\n\nAPI: -\u003e `\u003cscript endpoint\u003e/g/\u003cgoogle drive fileId\u003e`\n\nReturns:\n  - `{auth: true}` - if file is not public\n  - `{url, name, size}` - if file is public and can be downloaded directly.\n\n\n### CORS size check\n\nAnother API is to simply check the `Content-Length`, which occasionally is not available due to CORS (if `Access-Control-Expose-Headers` is not set)\n\nAPI: -\u003e `\u003cscript endpoint\u003e/c/\u003curl\u003e`\n\nReturns:\n  - `{size, cors}` - size of file and if CORS access from origin domain is available\n  - `{error}` - if an error occurs\n\n\n### Usage\n\nCopy the `wrangler.toml.sample` -\u003e `wrangler.toml` and fill in credentials.\nPublish with `wrangler publish`.\n\nSee [Cloudflare Worker API Docs](https://developers.cloudflare.com/workers/tooling/wrangler) for more details.\n\n\n### LICENSE\n\nThis utility is licensed under the MIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrecorder%2Frwp-cors-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebrecorder%2Frwp-cors-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrecorder%2Frwp-cors-helper/lists"}