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

Website protected, REST API Unprotected but images are not accessible. #178

Open
faurelia opened this issue Nov 10, 2020 · 1 comment
Open

Comments

@faurelia
Copy link

faurelia commented Nov 10, 2020

Hi, we are doing adjustments on the website but we want our mobile app to be still usable. So we password protect the website and enable only access to REST API.
However, if we check REST API to be excluded from password protection, we are still unable to access images from the app.
I think it's a bug as there is no option in the settings to allow images from REST API access.

Use case:
We want the website to not be public yet while we are finalizing some stuff.
Mobile app developer works on REST API and finalize their own stuff in the mobile front.

Hope this can be a new option in the future. Regards.

@benhuson
Copy link
Collaborator

Do you mean you can't access the REST media endpoint /wp-json/wp/v2/media/ to get image data?

The plugin does not block access to media files URLs in the uploads directory so that should not be an issue?

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

2 participants