CSP array format #81
Answered
by
bepsvpt
incoming-th
asked this question in
Q&A
-
Hi, Quick question, for the CSP array format should it be like this:
or like this:
Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
bepsvpt
Nov 30, 2022
Replies: 1 comment
-
In most cases, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
incoming-th
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'csp' => [ 'default-src' => [ 'self' => true, 'allow' => [ config('app.url') ] ],
is the correct one.In most cases,
'self' => true
will allow your website to load assets from the same domain.