Skip to content

No header sent with Laravel 12 #92

@FabienArr

Description

@FabienArr

Hello,

I think it's a problem of installation but i don't see what is wrong. (https://github.com/bepsvpt/secure-headers?tab=readme-ov-file#installation)

I do this :

  • Add in bootstrap\providers.php : Bepsvpt\SecureHeaders\SecureHeadersServiceProvider::class, because in your installation documentation you talk of config/app.php but I thinks it's only for Laravel < 5.5
  • Add in app\Http\Kernel.php : \Bepsvpt\SecureHeaders\SecureHeadersMiddleware::class,
  • Copy the secure-headers.php in the folder config
  • Of course, install your package.

In the bootstrap/cache/services.php I can see

39 => 'App\\Providers\\QueryBuilderMacroProvider', 40 => 'Bepsvpt\\SecureHeaders\\SecureHeadersServiceProvider', ), 'eager' =>

Thanks for your help.

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions