Tests fix
Set cors function with an option to append pre-existent urls