wp-api-swaggerui icon indicating copy to clipboard operation
wp-api-swaggerui copied to clipboard

Activation breaks editing in Elementor, when site is behind Basic Auth

Open portalzine opened this issue 2 years ago • 1 comments

As soon as the plugin gets activated it breaks editing within Elementor and access to the Rest API Might be related to colliding Basic Auth, as the website is secured that way.

portalzine avatar Feb 11 '23 20:02 portalzine

Commenting out the swaggerbag and swaggerauth require_once lines in wp-api-swaggerui.php restores my access to wp-json using Application Passwords (WP 5.6+) after installing this plugin. It provides the clearest and most usable OpenAPI definitions for WordPress 6.4.2 out of the three similar plugins available. Conditionally preventing those two files from loading on newer WordPress versions seems to be the only update it needs to work again.

nykula avatar Dec 07 '23 18:12 nykula