I'm new to iframes and their security flaws. I have website A that needs to be embedded on an iframe on a list of websites. Here is the interesting part.
- The list of trusted websites and the iframe share the same domain.
- Only the list of trusted websites can iframe A
- If an untrusted website tries to iframe A, some error should be rendered.
I know some places do this with some sort of tokenization system. Does anyone know or have some good references to do this?