No 'Access-Control-Allow-Origin' header

Getting error on all websites Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Header set Access-Control-Allow-Origin “*” is already added in the .htaccess file