add an allowAllOrigin property and constant to define it and add isJson constant