CORS support
Fix intermittent PHP notice