Klarna Shipping - Edit .htaccess
Edit .htaccess file
If you are using Apache
After installing the plugin we need to edit our .htaccess file. This is done at your hosting company.
- Via FTP edit the .htaccess
- Before the
# BEGIN WordPress
add the following:RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
- The end result should now look like this:
RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] # BEGIN WordPress
- Save the file.
If you are using Nginx
After installing the plugin we need to edit our config file. This is done at your hosting company.
- Edit the NGINX Config file and add the following:
add_header Access-Control-Allow-Headers "Authorization";
- Save the file.