Redirect only works if request is otherwise successful (ie 2xx status)
Added CORS functionality
0.4.5 - CORS builtin functionality
added cors enabled switch