Answer the question
In order to leave comments, you need to log in
Cross-domain queries for the same domain with and without www?
1. There is a site. The domain is accessed both with htp://www.url.ru and just url.ru
2. The baseurl is registered in the framework configs, which is used in the templates of all pages to form paths to images \ fonts \ styles \ etc. .
3. When entering through www - there are no problems, when entering without www - there is:
Access to Font at ' www.url.ru/fonts/font.woff ' from origin ' url.ru ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' url.ru ' is therefore not allowed access.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question