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

Move contents of #horizon to separate component #1022

Merged
merged 3 commits into from
May 14, 2021
Merged

Move contents of #horizon to separate component #1022

merged 3 commits into from
May 14, 2021

Conversation

Grldk
Copy link
Contributor

@Grldk Grldk commented May 14, 2021

This PR moves the contents of the #horizon div to a separate component. This fixes #1018 and #576.

The html in the root Vue element cause Vue to use new Function, which is not allowed when using a Content Security Policy that does not include 'unsafe-eval', which causes the Horizon Dashboard to not work at all if such a CSP is present. Moving the content into a separate vue component fixes this. (ref. laravel-mix/laravel-mix#1052 (comment))

As far as I can tell nothing breaks due to this PR.

I was not sure if I should have included the compiled js in this PR, can remove if wanted.

@taylorotwell taylorotwell merged commit c618dce into laravel:5.x May 14, 2021
@taylorotwell
Copy link
Member

Reverted.

@Grldk
Copy link
Contributor Author

Grldk commented May 27, 2021

@taylorotwell I'm sorry for that bug, should have caught it. Would you consider a second try at this with a working auto load? Reverting this makes the horizon dashboard unusable with a strict CSP unfortunately.

@driesvints
Copy link
Member

@NEGits I don't think we'll be reconsidering this sorry. Chances are high that we'll break other things.

@Grldk
Copy link
Contributor Author

Grldk commented May 27, 2021

While I admit I should have caught auto load breaking I don't see what else could break. Plus I would like to be able to use the Horizon Dashboard. Ah well. Thanks for considering my PR in the first place.

@francoism90
Copy link

Any other workaround available?

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.

Horizon Dashboard does not work with strict content security policy
4 participants