#Add these lines to your .htaccess file
Header set Access-Control-Allow-Origin "http://localhost"
Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
Header set Access-Control-Allow-Headers "X-Oc-Merchant-Language, X-Oc-Store-Id, Content-Type,X-Oc-Merchant-Id, X-Oc-Session"
Header set Access-Control-Allow-Credentials: true
RewriteRule .* - [E=HTTP_Authorization:%{HTTP:Authorization}]No ‘Access-Control-Allow-Origin’ header is present on the requested resource Print
Modified on: Fri, 24 May, 2019 at 8:41 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.