Open bastos71 opened 7 months ago
Add nonce csp to <style> and <script> tags in blade views.
<style>
<script>
Actually when I'm reaching my app, I've got CSP issues :
By adding nonce="{{ csp_nonce() }}" to those tags, everything works fine (tested locally on my side by overriding the concerned blade views)
nonce="{{ csp_nonce() }}"
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
@bastos71 can you create a PR for this and explain what issue is is solving.
Request
Add nonce csp to
<style>
and<script>
tags in blade views.Actually when I'm reaching my app, I've got CSP issues :
Solution
By adding
nonce="{{ csp_nonce() }}"
to those tags, everything works fine (tested locally on my side by overriding the concerned blade views)Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.