"Can't create resources" error when push product
"Can't create resources" error when push product
Written by Hazem Khaled
Updated over a week ago
"Can't create resources" error when push product generates because of failed authentication.
The most common method we’ve found is Basic Authentication. The trouble is, some hosts and/or managed services don’t work out of the box with basic authentication authorization header and require some adjustments to their configuration to correctly handle it. most common issue generating because of this is Basic Authentication Headers Are Not Passed Through with PHP in CGI Mode and The solution we’ve found that works the majority of times is to use a simple WordPress .htaccess modification.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Specifically include E=HTTP_AUTHORIZATION:%{HTTP:Authorization}, in the first [L].