Magento2

CORS policy: No ‘Access-Control-Allow-Origin’

Font from origin domain.dev has been blocked… (CORS and browsersync) If you are getting issue fonts are blocked in web client CORS then below code will help you. Use the code in .htaccess file and problem will be resolved 🙂 # Allow access from all domains for webfonts. <IfModule mod_headers.c> <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css)$”> Header set Access-Control-Allow-Origin “*” …

CORS policy: No ‘Access-Control-Allow-Origin’ Read More »

How to enable maintenance mode in Magento

This article describes how to enable maintenance mode in Magento. When Magento is in maintenance mode, visitors see a Service Temporarily Unavailable message in their web browsers instead of the store. However, authorized IP addresses can still view the store normally. This feature allows you to develop and test your store before it goes “live,” or do …

How to enable maintenance mode in Magento Read More »

Redirect all url to https

If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected. Using the following code in your .htaccess file automatically redirects visitors to the HTTPS version of your site: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] …

Redirect all url to https Read More »

Settings defined in website scopes are ignored in magento2

Today I will show you how you can fix the Settings defined in website scopes are ignored. This is a core bug in 2.1.3 – https://github.com/magento/magento2/issues/7943 The change you need to make is to vendor/magento/module-store/Model/Config/Processor/Fallback.php Change this /** * Retrieve Website Config * * @param array $websites * @param int $id * @return array */ …

Settings defined in website scopes are ignored in magento2 Read More »

Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting

If you get this error when trying to update via composer. So it means you are using wrong credentials.  For fixing this issue you must login into your magentocommerce account and create the Access Key   They you get public / private keys pair. Use those on those credentials and that will work.   Hope this will …

Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting Read More »