Merge pull request #1 from alexyan/master

User-defined callback methods, such as can be used to inject scripts, et...
add CORS header to local rules