Change default pid path
Add fix for CORS issue