-
Hello, I'm using this package for CSP settings in a website, but I have a problem with local and production environments. Has anyone met and solved this problem? Best |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @jcerdan, You can dynamically adjust the secure-headers config in |
Beta Was this translation helpful? Give feedback.
-
@jcerdan Maybe this could help, I had similar requirement and I wanted to have everything in 1 single config file so I ended up doing this in the secure-headers.php file:
You will need to use "app()->runningInConsole()" otherwise it will fail during deployment. |
Beta Was this translation helpful? Give feedback.
Hello @jcerdan,
You can dynamically adjust the secure-headers config in
AppServiceProvider
.