{"id":16232952,"url":"https://github.com/dmouse/cors-drupal8","last_synced_at":"2025-03-19T14:31:19.679Z","repository":{"id":20414640,"uuid":"23690958","full_name":"dmouse/cors-drupal8","owner":"dmouse","description":"How to register a new middleware service in Drupal 8","archived":false,"fork":false,"pushed_at":"2015-02-09T07:32:45.000Z","size":136,"stargazers_count":15,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T19:20:23.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/dmouse.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}},"created_at":"2014-09-05T05:07:01.000Z","updated_at":"2024-04-19T03:15:59.000Z","dependencies_parsed_at":"2022-07-31T19:08:06.024Z","dependency_job_id":null,"html_url":"https://github.com/dmouse/cors-drupal8","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/dmouse%2Fcors-drupal8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmouse%2Fcors-drupal8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmouse%2Fcors-drupal8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmouse%2Fcors-drupal8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmouse","download_url":"https://codeload.github.com/dmouse/cors-drupal8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243997107,"owners_count":20380980,"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-10T13:10:46.899Z","updated_at":"2025-03-19T14:31:19.331Z","avatar_url":"https://github.com/dmouse.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Drupal 8 CORS\n\nThanks to the issue (#2303673)[https://github.com/drupal/drupal/commit/5ef912e9659131fd31d1522e3216d37323a0c047] in Drupal 8 now we have a new powerfull component, (StackPHP)[http://stackphp.com] is a middleware for the HttpKernel class, this middleware provide a decorator thas can intercept the request after to touch the Drupal Core.\n\n## How to use\nThis modulo don't provide UI, only need you turn on.\n\n## Installation\n```bash\n$ cd modules/\n$ git clone git@github.com:dmouse/cors-drupal8.git cors\n$ drush en cors\n```\n\nMiddleware enabling cross-origin resource sharing for your http-{foundation,kernel} using application.\n\nCross-origin resource sharing (CORS) is a mechanism that allows a web page to make XMLHttpRequests to another domain. Such \"cross-domain\" requests would otherwise be forbidden by web browsers, per the same origin security policy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmouse%2Fcors-drupal8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmouse%2Fcors-drupal8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmouse%2Fcors-drupal8/lists"}