Category Archives: Javascript

Window.postMessage part 2 – an example

In Part 1 of the series, I talked about the basics of Window.postMessage and showed some sample code.  This post will show some real code with a demo link.   This code purposefully has some security issues which will be … Continue reading

Posted in Javascript, Security | Leave a comment

Window.postMessage part 1 – the basics

What is Window.postMessage? Window.postMessage is a way to safely communicate cross-origin between windows. Normally, pages are only allowed to interact with each other if they share the same origin(protocol+host+port matching). postMessage allows the a developer to get around that. Syntax … Continue reading

Posted in Javascript, Security | Leave a comment