CORS stopping icons from appears on site
Posted: Tue Dec 17, 2024 4:45 pm
I have update the config.php in both location but can NOT change the htaccess update with
i used this info here:
https://www.fastcomet.com/blog/how-to-f ... ns-problem
## original
#RewriteCond %{HTTPS_HOST} !^www\.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
As if i do the site changes from https//example.com to htts://www.www.example.com
When I disable in the client broswer CROS security the site works as expected.
Error in browser console CORS Missing Allow Origin
other info i have two opencart on the same box that (might) impact it.
when i go dirrectly to the website with https://www.example.com the icons do not work
but when i go to the web site with https://example.com the icons do work.
paid template used mahardhi
php version PHP Version 8.2.18
open cart version 4.0.2.3
i used this info here:
https://www.fastcomet.com/blog/how-to-f ... ns-problem
## original
#RewriteCond %{HTTPS_HOST} !^www\.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
As if i do the site changes from https//example.com to htts://www.www.example.com
When I disable in the client broswer CROS security the site works as expected.
Error in browser console CORS Missing Allow Origin
other info i have two opencart on the same box that (might) impact it.
when i go dirrectly to the website with https://www.example.com the icons do not work
but when i go to the web site with https://example.com the icons do work.
paid template used mahardhi
php version PHP Version 8.2.18
open cart version 4.0.2.3