{"id":20409181,"url":"https://github.com/tcorral/corset","last_synced_at":"2025-03-05T02:42:02.205Z","repository":{"id":141831063,"uuid":"2949979","full_name":"tcorral/CORSET","owner":"tcorral","description":"A new way to break the x-origin policy in scripts allocated in different domains.","archived":false,"fork":false,"pushed_at":"2018-09-20T11:50:15.000Z","size":15,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-15T13:07:38.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/tcorral.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":"2011-12-09T20:42:07.000Z","updated_at":"2023-11-30T00:57:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"82bb34f2-8366-4eb0-a928-cf531cd8a209","html_url":"https://github.com/tcorral/CORSET","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/tcorral%2FCORSET","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2FCORSET/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2FCORSET/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcorral%2FCORSET/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcorral","download_url":"https://codeload.github.com/tcorral/CORSET/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241955039,"owners_count":20048405,"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-15T05:40:06.063Z","updated_at":"2025-03-05T02:42:02.187Z","avatar_url":"https://github.com/tcorral.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORSET\n\n## Update: This method doesn't works anymore.\n\nThis is a method to break the Cross-domain policy with 'script' tags.\n\nMaybe some people can say that the script tag is not under the Cross-domain policy, and this will be almost right.\n\nThe problem was to log uncaught errors with [Hermes.js](https://github.com/tcorral/Hermes.js) when the scripts are in\n different domains (subdomains, CDN...)\n\n[Problem definition in stackoverflow](http://stackoverflow.com/questions/5913978/cryptic-script-error-reported-in-javascript-in-chrome-and-firefox)\n\nPlease be carefull with this and only use it under your responsability.\n\n## How to test problem:\n* Use files in 'problem' folder.\n* Put 'test.js' file in one external domain or simulate it with a proxy, [Fiddler](http://www.fiddler2.com/)...\n* Put 'problem.html' in your localhost server.\n* Open 'problem.html' url in your localhost server.\n* Check the console and you will see one line with the 'Script Error' in line number 0.\n\n## How to test solution:\n* Use files in 'solution' folder.\n* Put 'test.js' file in one external domain or simulate it with a proxy, [Fiddler](http://www.fiddler2.com/)...\n* Put 'iframeXOrigin.html' file in the same external domain where 'test.js' file or simulate it with a proxy,\n[Fiddler](http://www.fiddler2.com/)...\n* Put 'XOrigin.html' in your localhost server.\n* Open 'XOrigin.html' url in your localhost server.\n* Check the console and you will see that the 'Script Error' in line number 0 doesn't exist anymore and you will see\ninstead an Hermes uncaught error type with file url and line number where the error exist.\n\n## Do you want to collaborate?\n\nAll constructive comments are welcome. I promise I will answer everyone.\n\n## Agreements\n\nThanks to [Manuel Flara](https://github.com/manuelflara) to notice me about [this issue](https://github.com/tcorral/Hermes.js/issues/1).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fcorset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcorral%2Fcorset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcorral%2Fcorset/lists"}