Feature request from ihor-sviziev, posted on GitHub Aug 23, 2016
I have CORS requests issue with fonts when I using CDN. In order to fix it I'm changing my .htaccess. During deployment I do composer install. After that my changes were reverted.
Preconditions
- Magento 2.1.0 installed via composer
- Base Static URL is CDN domain (CloudFront in my case)
Steps to reproduce
- Install Magento 2 via composer
- Change your file pub/static/.htaccess (as example add
Header set Access-Control-Allow-Origin "*"
)
- Remove vendor directory
- Do composer install
Expected result
My pub/static/.htaccess file should not be overridden.
Actual result
My pub/static/.htaccess file is overridden and my changes were reverted.
Possible solutions:
- Do not add this file to map listing in composer.json of magento2-base package, move it to magento/product-community-edition package
- Add ability to override htaccess