As error says, you can't play your game from index file in your operation system for security reasons. Just upload your game to any server, and run it from index file on server, then game should work fine
If You want test your game from file in your system, then export your game as NW.js for desktop.
Cheers.