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

Public access Resource problem from directory /vendor #586

Open
h2lsoft opened this issue Jan 17, 2024 · 1 comment
Open

Public access Resource problem from directory /vendor #586

h2lsoft opened this issue Jan 17, 2024 · 1 comment

Comments

@h2lsoft
Copy link
Contributor

h2lsoft commented Jan 17, 2024

Uur vendor directory is protected by htaccess so package resource.

Is there a way to better way to display debugbar resource without pointing to vendor folder ?

We add this in root folder .htaccess to bypass:

# protect vendor/composer RewriteRule ^composer\.(lock|json)$ / [F,L] RewriteCond %{REQUEST_URI} !^/vendor/maximebf/debugbar/src/DebugBar/Resources RewriteRule ^vendor/(.*)?$ / [F,L]

@parallels999
Copy link
Contributor

parallels999 commented Jan 17, 2024

You could do your own route "bypass", look how others have done it
barryvdh/laravel-debugbar/JavascriptRenderer.php
barryvdh/laravel-debugbar/Controllers/AssetController.php
Other option, you could make a symlink and change assets basepath on configs
it all depends on your ingenuity, there are many ways

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