dreamsoftin / flutter_wordpress

Flutter WordPress API
https://pub.dartlang.org/packages/flutter_wordpress
MIT License
198 stars 122 forks source link

Login and post fetch works, but create post returns 404 #75

Open disu opened 3 years ago

disu commented 3 years ago

Hi, your example work correctly, after configuring JWT on my website, with login and posts fetch. But when I press the "create post" button it sends a request to https://MY_WEBSITE/wp-json/wp/v2/posts, passing default new post as parameter, and in response.statusCode I receive a 404 error. I've tried on the same URL with postman and it works correctly.

Do you know why?

disu commented 3 years ago

Seems to be an hosting problem because, on the others shared hosting, it works correctly. However if you have any suggestion on server configuration (htaccess?) please tell me.