Config
Jooby Version: 2.13.0 Using Undertow JDK 17
My setup of CORS works as expected (with only 1 exception) with the config below:
Cors cors = new Cors().setMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
cors.allowOrigin("*");
cors.setExposedHeaders("RT");
cors.setUseCredentials(true);
decorator(new CorsHandler(cors));
The problem appears when I set a custom header on the client. Suddenly I see the message with error code 403:
Same Origin Policy disallows reading the remote resource at http://localhost:9801/test. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
Help please....