Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Ошибка с подключением шрифтов после перехода на https://


Recommended Posts

Извините. решено после еещё одного обновление кэш!

Тема закрыи!

 

Перевел сайт на безопасный протокол https://

Все настройки магазина, конфигурационные файлы в корне и в админке, htaccess настроены

Пропали шрифты со стороннего ресурса и иконки Aweesome

Вот что выдает инспектор

Спойлер

 

Access to font at 'https://мойсайт/catalog/view/theme/unishop2/fonts/rubik-medium.woff2' from origin 'http://мойсайт' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.


В сети решения разнореливы и сложны для меня. Какое то есть простое решение?

Edited by sepraga
Link to comment
Share on other sites


@sepraga  еещё раз - настройте редирект в htaccess с http на https Сейчас открывается у вас по http и нет автоматического редиреки на https, естественно, что шрифты не загрузятся. Потом кликаешь по люпотому чтой ссылке - уже открывается страницы с https и все шрифты загружаются. После RewriteBase / добавьте что-то типа икого

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.