Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmouse/cors-drupal8
How to register a new middleware service in Drupal 8
https://github.com/dmouse/cors-drupal8
Last synced: about 2 months ago
JSON representation
How to register a new middleware service in Drupal 8
- Host: GitHub
- URL: https://github.com/dmouse/cors-drupal8
- Owner: dmouse
- Created: 2014-09-05T05:07:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T07:32:45.000Z (almost 10 years ago)
- Last Synced: 2024-10-10T13:11:04.715Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 133 KB
- Stars: 15
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Drupal 8 CORS
Thanks 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.
## How to use
This modulo don't provide UI, only need you turn on.## Installation
```bash
$ cd modules/
$ git clone [email protected]:dmouse/cors-drupal8.git cors
$ drush en cors
```Middleware enabling cross-origin resource sharing for your http-{foundation,kernel} using application.
Cross-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.