N
N
nikkon822019-10-09 08:18:10
opencart
nikkon82, 2019-10-09 08:18:10

Where and how to enable Access-Control-Allow-Origin on opencart 3?

Good day!
We made subdomains for cities, but when switching to a subdomain, it does not pull up some resources.
For example, font-awesome icons, fonts from the fonts folder, some scripts, etc.
In console it says:
Access to font at 'site_address/catalog/view/theme/default/fonts/ptsansbold-webfont.woff2' from origin ' http://poddomen.site_address ' has been blocked by CORS policy: No 'Access-Control -Allow-Origin' header is present on the requested resource.
And where and how to include this header "Access-Control-Allow-Origin" in Opencart 3?
Everything I found on the net did not work - I added both to htaccess and head - maybe I'm doing it wrong? or I’m putting it in the wrong place, it’s not what you need?))) Tell me
pliz!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question