webpack-livereload-plugin icon indicating copy to clipboard operation
webpack-livereload-plugin copied to clipboard

Cross-site cookie chrome warning

Open dominikj111 opened this issue 5 years ago • 2 comments

Hello, I've encountered with this deprecation A cookie associated with a cross-site resource at http://localhost/ was set without the SameSite attribute. .... in the Chrome browser.

I was wondering how to solve this problem and not sure if the fix should be done via the webpack config, watch config or in the plugin as this is the actual source of livereload isn't. Honestly, I'm not sure how to set this in neither of mentioned.

I was hoping that this webpack config would work, but didn't. devServer: { headers: { "Set-Cookie": "SameSite=None; Secure" } }

dominikj111 avatar Jul 12 '20 19:07 dominikj111

What cookie are you seeing set by this plugin? It shouldn't require any.

statianzo avatar Jul 13 '20 22:07 statianzo

Neither me, I just looking for the way to set SameSite=None; Secure to get rid of the deprecation message in the Chrome.

dominikj111 avatar Jul 14 '20 04:07 dominikj111