What's the difference between antiClickjack and x-frame-options

132 Views Asked by At

What's the difference between antiClickjack script and x-frame-options?

If we set 'x-frame-options', we can't prevent clickjacking from legacy browser?

Do we need to set both antiClickjack script and x-frame-options?

1

There are 1 best solutions below

0
Evgeny K On

AntiClickjack script is using for very old browsers (e.g. IE 7) see availability of x-frame-options and CSP:frame-ancestors

So it is reasonable to use x-frame-options and CSP:frame-ancestors on server side and not bothering to care about legacy browsers

more information here