The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
| server { | |
| listen 443 ssl deferred; | |
| server_name example.com; | |
| ssl_session_cache shared:SSL:10m; | |
| ssl_session_timeout 24h; | |
| ssl_buffer_size 4k; | |
| ssl_session_tickets off; | |
| ssl_protocols TLSv1.2; |