primus/access-control — pull request #4 by peterwilli (2014-09-13 12:11:22+00:00)
Title: Allow local files residing in file:/// to access socket seter

This works because if a local file connects to a outside server (Even if it's localhost) it will send origin:null, previously that would fail but with this fix you can allow files that reside in file:/// to connect if options.origin = "*".