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.

  1. Via FTP edit the .htaccess
  2. Before the# BEGIN WordPress add the following:
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
    	
  3. The end result should now look like this:
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
    # BEGIN WordPress
    	
  4. 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.

  1. Edit the NGINX Config file and add the following:
    add_header Access-Control-Allow-Headers "Authorization";
    	
  2. Save the file.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us