X-Frame-Options: SAMEORIGON issue
Hi All,
I have developed my application on AEM6.4 and now I need to access my application by another application through iframe, when I am trying to access my AEM application through iframe, I am getting below error:

as expected X-Frame-Options: SAMEORIGON
I have updated configuration at dispatcher level like:
X-Frame-Options: ALLOW-FROM https://mynonaemapplication.com
but after updating like this, it allows to all other applications to access my AEM application by iframe and looks like not recommended or not secure.
Please advice how can I access my AEM application by other application through iframe.
Thanks