wodby / nginx

Nginx docker container image
https://wodby.com/stacks
MIT License
72 stars 51 forks source link

Enable CORS for Drupal 8 #38

Open sprklinginfo opened 5 years ago

sprklinginfo commented 5 years ago

Hi there, I am using the entire Docker4Drupal stack for de-coupled Drupal development. I enabled 'CORS' in drupal services.yml and I need to enable Nginx to allow for CORS as well. By default, it uses the preset 'drupal8.conf.tmpl', how can I modify this tmpl file to enable CORS?

Thanks,

csandanov commented 5 years ago

Hi, please see https://github.com/wodby/nginx#customization