Skip to content

CSP array format #81

Answered by bepsvpt
incoming-th asked this question in Q&A
Discussion options

You must be logged in to vote

'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.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants