- I have written custom modal component in angular2. In the modal I am opening third party html as iframe. I will have 1 or 2 buttons to open the modal(internally iframe). Facing issue only when I have 2 buttons.
- On 1st button click iframe launching without any issue. Onclick of 2nd button third party url link getting called twice & its failing.
- Because of security reasons 2nd invocation to 3rd party html is not allowed, as the request is going 2nd time in my case it is failing to load content.
- Sometimes even if the iframe link gets called single time still it is failing. So not getting what is the actual issue.
- As per analysis this maybe due to cache issue. How to stop caching in iframe. Or any advice is welcome.
Having below code in modal
<iframe [src]="third/party/url.html"></iframe>