cool-hooks / react-wordpress-hooks

📄 Set of hooks for WordPress REST API
https://cool-hooks.github.io/react-wordpress-hooks/
MIT License
22 stars 7 forks source link

Show error ERR_HTTP2_PROTOCOL_ERROR when use basic auth #101

Open f97-2308 opened 4 years ago

f97-2308 commented 4 years ago

Hi, i used react-wordpress-hooks but when login basic auth, it is show error: GET com/wp-json/wp/v2/settings net::ERR_HTTP2_PROTOCOL_ERROR. But when I post request with the postman and basic auth then it works. Please check it, thank you.

JB1905 commented 4 years ago

Hi 👋, I checked the library with basic auth - I used Basic Auth WordPress plugin. I have no problems with CRUD actions.

Tomorrow I will check the library in WordPress with different configuration.

Could you provide additional information:

Thanks for your issue!

f97-2308 commented 4 years ago

Hi 👋, I checked the library with basic auth - I used Basic Auth WordPress plugin. I have no problems with CRUD actions.

Tomorrow I will check the library in WordPress with different configuration.

Could you provide additional information:

  • version of react-wordpress-hooks
  • extension (if you use) for WordPress authentication
  • does the problem involve WordPress installed locally or on a server?

Thanks for your issue!

Thanks for reply.

I use react-boilerplate, add WordPressProvider and usePosts(). And just like that.