example to show how CORS works with Spring rest api