WP API Remove Authorization Header
WordPress plugin that simulates how CGI removes the "Authorization" header, useful for debugging WP API Authentication
by Event Espresso (Mike Nelson) · github.com/eventespresso/wp-api-remove-auth-header
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/eventespresso/wp-api-remove-auth-header/archive/refs/heads/master.zipPlugin which simulates how CGI and Fast-CGI remove the "Authorization" HTTP header on requests. This helps test if your WP API authentication method can handle that header being removed.
Currently, activating this plugin should cause the OAuth plugin, Application Passwords, and Basic Auth plugins to not authenticate the user properly, unless they use a workaround that places the authentication data into a separate PHP global (eg by modifying the .htaccess file); or unless they send the authentization data in a different manner.
Installing
- Download the plugin into your plugins directory
- Enable in the WordPress admin