javascript - How to allow IFrame to load pages only from specified domain? -
javascript - How to allow IFrame to load pages only from specified domain? -
for example, i'm developer of foo.com website. on 1 of pages i've iframe page bar.com. want page in iframe load pages bar.com (by clicking links), restrict next links domains (clicking link in iframe ponts evil.com or whatever should display error message).
can somehow? may help of javascript?
javascript html security iframe
Comments
Post a Comment