detect whether to use cors
Test
New test doc