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

Bypass app_dev.php localhost restriction with MB_EXPOSE_DEV environment #99

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

werrolf
Copy link
Contributor

@werrolf werrolf commented Sep 8, 2021

Allows deliberate deactivation of the localhost-only access restriction hard-coded into app_dev.php.

If environment variable MB_EXPOSE_DEV is set, and has any value PHP considers true (i.e. any non-empty string except "0"), no access check is performed, and app_dev.php is accessible from any remote host.

If environment varialbe MB_EXPOSE_DEV is not set, set to the empty string or set to 0, access remains restricted.

@werrolf werrolf merged commit a46c19e into master Sep 8, 2021
@werrolf werrolf deleted the feature/expose-dev-via-environment branch September 8, 2021 13:56
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

Successfully merging this pull request may close these issues.

1 participant