So I looked on the forums, I modified the file:
In order to add:
<Directory / var / www / html>
Order Allow, Deny
Allow from all
Header set Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "GET, POST, OPTIONS, DELETE"
unfortunately that does not solve my concern, would you have any leads I could use please?
Solved! Go to Solution.
I guess you can resolve this issue by adding this in your .htaccess :
Header add Access-Control-Allow-Origin "b.com"
This will allow the resources to load on the second domain. If you would prefer to allow the resources to load on all domains you can use :
Header add Access-Control-Allow-Origin "*"
Hope it works !
Thanks but it doesn't work, I put it in the .htaccess in:
The error remains the same in the console.
Do you have another lead please?
The .htaccess file is in root folder of your Magento Project, just change in :
Let me know if it works !
Yes, it's root folder in var/www/html
Doesn't work for me in .htaccess
Hmmmm, I don't know why, I've been on it for 3 days
Please share how you resolved and mark that solution so someone may get help from it