Page 1 of 1

CORS stopping icons from appears on site

Posted: Tue Dec 17, 2024 4:45 pm
by amongCart
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

Re: CORS stopping icons from appears on site

Posted: Wed Dec 18, 2024 1:06 am
by paulfeakins
amongCart wrote:
Tue Dec 17, 2024 4:45 pm

Code: Select all

#RewriteCond %{HTTPS_HOST} !^www\.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
I can't really work out what you're trying to do but those lines are commented out for a start.

Re: CORS stopping icons from appears on site

Posted: Wed Dec 18, 2024 1:51 am
by khnaz35
Perhaps its time to hire a developer then? Drop me email for fix