additionally also add CORS support to restrict for specific origin, adds a new config and updated the documentation as well