statianzo / webpack-livereload-plugin

LiveReload during webpack --watch
ISC License
203 stars 51 forks source link

Cross-site cookie chrome warning #61

Open dominikj111 opened 4 years ago

dominikj111 commented 4 years ago

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" } }

statianzo commented 4 years ago

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

dominikj111 commented 4 years ago

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