But I doubt that Google's AMP cache will respect existing headers (the very nature of the cache stuff means that they won't, but what they will do to non-cache headers on an item is undefined AFAIK and so they will probably just strip them).
a quick look at an amp page (from google's cache) shows it's being served with x-frame-options:SAMEORIGIN, so looks like the linkis thing won't work with them.
I saw a site do this yesterday. It was so noticeable because I only permit same-origin JavaScript and the whole site broke (most actually work).
Then I realised there is an intermediary providing this service:
http://linkis.com/
It is the worst of all things.