Skip to content

Instantly share code, notes, and snippets.

@ncr
Created December 22, 2009 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncr/261697 to your computer and use it in GitHub Desktop.
Save ncr/261697 to your computer and use it in GitHub Desktop.
A minimal Flash Socket Policy Server
// A minimal Flash Socket Policy server for node.js.
require("tcp").createServer(function (c) {
c.addListener("receive", function () {
c.send('<cross-domain-policy><allow-access-from domain="*" to-ports="*" /></cross-domain-policy>');
c.close();
});
}).listen(843);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment