laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

custom name for XSRF-TOKEN cookie #2621

Closed msporleder-work closed 3 years ago

msporleder-work commented 3 years ago

We would like to rename our XSRF-TOKEN cookie to reflect the APP_ENV: XSRF-TOKEN-dev, for example.

It looks like it is here: https://github.com/laravel/framework/blob/277c2fbd0cebd2cb194807654d870f4040e288c0/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php#L193 and https://github.com/laravel/framework/blob/277c2fbd0cebd2cb194807654d870f4040e288c0/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php#L208

anywhere else?

themsaid commented 3 years ago

You should ask on the forums.