I had the same problem and solved it with these three steps:
1) in the Apache configuration file (for me the path was C: \ wamp \ bin \ apache \ apache2.4.18 \ conf \ httpd.conf) add the line: Header set Access-Control-Allow-Origin "*" in the contents of the <Directory>
tag <Directory>
:
DocumentRoot "c:/wamp/www" <Directory "c:/wamp/www/"> Options +Indexes +FollowSymLinks Header set Access-Control-Allow-Origin "*" AllowOverride all Require local </Directory>
2) activate "headers_module" in apache modules (it will also restart your Apache server, effectively applying the changes made in step 1)
3) clear the browser cache (I use chrome, and I was told that the best way to βhard cleanβ the cache was to go into the developer tools β the βNetworksβ tab β right-click β clear the browser cache) (by the way, cleaning the browser cache often useful for debugging in chrome)
Now that should work. Good luck
source share