See "Clickjacking" article on Wikipedia.
If you are using HTMLForm and you want to allow framing of the form, you need to override HTMLForm's displayForm function and call $wgOut ->allowClickjacking(); on the overridden function.
displayForm
$wgOut ->allowClickjacking();