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.
- 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.
- 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
- 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.
Hello again Adeel,
Just a quick follow up to our conversation. Today we upload the Zoom App to our website. We’ve followed your guide step by step. Also we watched your tutorials videos. Almost everything works fine except we have an error: “Zoom WordPress Plugin is not able to verify events generated from Zoom. Your site is missing the HTTP_AUTHORIZATION headers. Please follow this blog post for the solution”
We read the blog, follow the instructions but it didn’t work. Then, we also talked with our hosting provider and asked them to enable HTTP_AUTHORIZATION headers in PHP. They already did that. After that, the error did not show again until I’ve created a new zoom meeting from our website and the error message showed up again :(… Any suggestions?
Thank you in advance,
Claudio
Please email us the WP admin access and FTP details so I could have a closer look at the issue on your end.
I tried adding the lines you mentioned and did not work
In that case please contact your host and ask them to enable HTTP_AUTHORIZATION headers in PHP