Missing HTTP_AUTHORIZATION on WordPress

Prerequisite

To be able to listen for Zoom events you need to enter a valid verification token from your Zoom App. If you haven’t completed this step please refer to it here.

The Problem

HTTP_AUTHORIZATION header can be missing in some hosting environments which will prevent the Zoom WordPress plugin to validate the verification token entered in Zoom Meetings -> Settings -> App Verification Token. Therefore, the plugin will be unable to listen to the real-time events generated by Zoom.

Solution

Caution: Adding an incorrect configuration in .htaccess can cause your site to go down. If you are not sure about the below steps please ask a technical person to do this for you. Make sure you take the backup of your existing .htaccess file.

  1. Open the .htaccess file located on your WordPress root. This will be located in the same directory as your site wp-config.php file. If you are opening the file via cPanel. please follow the method mentioned here.
  2. Locate this block in your .htaccess file
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L] # END WordPress
  3.  AFTER the # END WordPress line, ONLY Add the indicated line as shown below.
    # END WordPress
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

That’s it! save the file and the missing authorization header issue shall now be fixed. If you still experience an error then please contact your hosting support and ask them to enable the PHP HTTP Authorization headers for your site. Refer them to this post by a WP Engine engineer if they aren’t sure about the issue.