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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -