Warning in console.log when adding embedded google maps

Viewed 2227

I want to add google maps (embedded) map in my web app. I'm building an angular 8 and using built-in server but still in console.log showing warnings

A cookie associated with a cross-site resource at https://google.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review coo...

What I've done in my code in my ngOnInit method, I already added this

    this.cookieService.set('cross-site-cookie',"bar");
    this.cookieService.set('SameSite','SameSite=None; Secure');

The code above I use npm package called ngx-cookie-service. Also as I made myself a reference to this website

https://github.com/GoogleChromeLabs/samesite-examples/blob/master/javascript.md

I'm not sure either I have done it right or wrong. What I did is I just copy entirely using "copy link" from google maps from my place. How to fix this.

2 Answers
<iframe src="your google map url"></iframe>

Try this out.

Related