pusher / pusher-js

Pusher Javascript library
http://pusher.com
MIT License
2.11k stars 374 forks source link

A cookie associated with a cross-site resource at http://dashboard.pusher.com/ was set without the `SameSite` attribute. #400

Closed paxha closed 4 years ago

paxha commented 5 years ago

i am getting cross site issue in local machine as well as production server. Capture

due to this warnings i am not getting notifications

this is my pusher configuration code

var pusher = new Pusher('{{ config('broadcasting.connections.pusher.key') }}', { cluster: '{{ config('broadcasting.connections.pusher.options.cluster') }}', encrypted: true, authEndpoint: '/broadcasting/auth', auth: { headers: { 'X-CSRF-Token': '{{ csrf_token() }}', // CSRF token } } });

var channel = pusher.subscribe('private-user.' + '{{ auth()->user()->id }}');

channel.bind('App\Events\NewNotificationEvent', function (data) { toastr.success(data.notification.message, data.notification.heading); });

volkanmetin commented 4 years ago

392

leesio commented 4 years ago

Indeed. This is a duplicate. Thanks for mentioning that @volkanmetin