You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
Steps to reproduce
Header set Access-Control-Allow-Origin "*"
)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:
The text was updated successfully, but these errors were encountered: