There are lots of question placed on stack-overflow regrading this issue but still i am not getting any result for my issue.
I am fetching an URL(from other origin) and called in JS (to my site origin), The URL is showing correctly but the error is showing like :
Access to Image at 'http://cliparts.co/cliparts/qiB/XxB/qiBXxBydT.png' from origin 'http://openvectors.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://openvectors.net' is therefore not allowed access.
I have used the below code in my .htacces file, but still its not working :
<IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css|js|gif|png|jpe?g|svg|svgz|ico|webp)$"> Header set Access-Control-Allow-Origin "*" </FilesMatch> </IfModule>
My test URL is :
Anybody can help me?