Security to iframe widget from clickjacking or csrf attacks -


i developing widget hosted on server www.exampleserver.com.

our client embed iframe site www.validclient.com. on embedding widget sms sent client's customer.

now thinking clickjacking double framing in attcker may embed our client url in iframe. widget server found request valid client , server shoots sms.

valid client code:

<html>  // line of code   <iframe src="www.exampleserver.com" /> // line of code  </html> 

attcker code

<html>  // line of code   <iframe src="www.validclient.com" />   // line of code  </html>   

so want server url content rendered on clients iframe not on attacker iframe. security have used:

content-security-policy: frame-ancestors http://www.validclient.com

and

x-frame-options: allow-from http://www.validclient.com

this amazing blocks our url on attackers iframe.

but not supported internet explorer , other browsers.

please tell me other approach prevention of attack must universal browser.

thanks in advance. hoping positive replies.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -