Skip to content

Commit 816bdc1

Browse files
committedJun 3, 2015
Merge pull request #61 from ipfs/api-proxy-fix
rewrite referer to make api happy
2 parents b74b7e0 + db71dd4 commit 816bdc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎byggfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ bygg.task('serve', function () {
1616
.pipe(bygg.write('build/'))
1717
.pipe(serve(3000, function (app) {
1818
var opts = url.parse('http://localhost:5001/api')
19+
opts.headers = {'referer': 'http://localhost:5001/'}
1920
return app
2021
.use('/api', proxy(opts))
2122
}))

0 commit comments

Comments
 (0)
Please sign in to comment.