Paste the following REWRITE rules and CORS settings into your opencart root folder .htaccess file after "RewriteBase /"

##################### Shopping Cart Rest API START #####################
# Sets the HTTP_AUTHORIZATION header removed by apache
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
##################### Shopping Cart Rest API START #####################