Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples on the 'Quickstart' page are misleading due to HTTP usage. #371

Open
papsl opened this issue May 17, 2024 · 1 comment
Open

Examples on the 'Quickstart' page are misleading due to HTTP usage. #371

papsl opened this issue May 17, 2024 · 1 comment

Comments

@papsl
Copy link

papsl commented May 17, 2024

I suggest changing examples on Quickstart to use HTTPS schema, from:

var client = new WordPressClient("http://demo.wp-api.org/wp-json/");

to

var client = new WordPressClient("https://demo.wp-api.org/wp-json/");

Since WordPress authentication only works when TLS is used and in case of HTTP will return "Sorry, you are not allowed to create posts as this user".

@papsl
Copy link
Author

papsl commented May 17, 2024

I changed the readme.md file and created #372 pull request. Since I lost a few hours due to HTTP in example today. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant