K
K
kk952020-11-03 14:58:45
opencart
kk95, 2020-11-03 14:58:45

What is this error (blocked by CORS policy)?

The site has been in existence for about a year. A couple of months ago, the browser gives errors of this nature:

Access to font at ' https://site.ru/catalog/view/theme/oct_luxury/styl... ' from origin ' https://www.site.ru ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Font-awesome icons are naturally not displayed on the site.

Site on Opencart 2.3.

What is wrong and how to fix it please tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-11-03
@Rsa97

site.ru and www.site.ru are two different sites. Naturally, requests from one to the resources of another will only work if the CORS policy is followed .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question