Mobile app version of vmapp.org
Login or Join
Si4351233

: Do iframes have access to the cookies of the hosting domain? We want to build an ad-frame which will run on external sites (e.g. YYY.com). The external site will place an iframe to our site

@Si4351233

Posted in: #Advertising #Cookie #Domains #Html #Iframe

We want to build an ad-frame which will run on external sites (e.g. YYY.com). The external site will place an iframe to our site (ZZZ.com/ourAdContent.html) and we will show some ads in this frame. The question is, will our iframe have access to the cookies belonging to our domain even when the iframe is on a separate domain?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

You can't share cookies across domains. You may share across subdomains. So, if your domain wrote the cookie stored on the client - whether in an iframe from other site or stored by visiting your main site, your domain should be able to access it. Otherwise - no.

Here's some good info on the matter (over on SO)...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme