enzolutions / community-bookstore

Community Bookstore to exchange and donate books
10 stars 18 forks source link

Enable CORS in Drupal 8 #13

Closed enzolutions closed 10 years ago

enzolutions commented 10 years ago

Drupal 8 in current version don't support CORS, but there is a ISSUE for that with a partial solution

https://www.drupal.org/node/1869548

Please test and enable REST POST request

enzolutions commented 10 years ago

Because the mode https://www.drupal.org/project/cors doesn't have a version for Drupal 8 yet I recommend use Apache 2 and enable CORS using .htaccess using the following command

Header set Access-Control-Allow-Origin "*"

More information at http://enable-cors.org/server_apache.html

omero commented 10 years ago

The README has been updated #23 and shows the link to enable CORS in Drupal 8