loisaidasam/2048 — pull request #1 by scotthew1 (2014-03-26 19:30:24+00:00)
Title: fixed Access-Control-Allow-Origin issue

I was having issues with javascript not getting responses from the server with this error "Origin http://127.0.0.1:5001 is not allowed by Access-Control-Allow-Origin." Adding this function fixed it for me.