cedaro / satispress

Expose installed WordPress plugins and themes as Composer packages.
500 stars 48 forks source link

Add a health check feature to test for common configuration issues. #124

Closed bradyvercher closed 3 years ago

bradyvercher commented 4 years ago

Several people have had issues with certain server configurations stripping Authorization headers, which prevents protected resources from being accessed. There are docs and a wiki entry, but it's not immediately clear what's happening when that does occur (see #105).

This feature attempts a loopback test to ensure the header exists as expected and will display an admin notice on the SatisPress Settings screen if any issues are encountered.

visata commented 3 years ago

@bradyvercher I'm also having the auth issue. The server is using cPanel, so as someone suggested tried changing my .htaccess file from: RewriteRule ^index\.php$ - [L]

To:

RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] It didn't solve the issue. How do I test this build? Do I need to "git clone" and "composer install"?