Skip to content

Instantly share code, notes, and snippets.

@tiye
Created April 13, 2012 07:19
Show Gist options
  • Save tiye/2374764 to your computer and use it in GitHub Desktop.
Save tiye/2374764 to your computer and use it in GitHub Desktop.
Error: `Not allowed to load local resource: file:///home/chen/code/home/git/docview/libs/coffee-script.js`
<html>
<head>
<script type='text/coffeescript'>
console.log 'loaded!'
</script>
<script src='file:/home/chen/code/home/git/docview/libs/coffee-script.js'></script>
</head>
<body></body>
</html>
http = require 'http'
fs = require 'fs'
http.createServer (req, res) ->
fs.readFile 'main.html', 'utf-8', (err, source) ->
res.end source
.listen 8001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment