I used these codes to secure a page, but the code fails when the page is embedded as iframe in a third party website, can you help me.