Skip to content

Commit b7d13e1

Browse files
committed
don't set the headers.
1 parent ece2d2e commit b7d13e1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

cwms-data-api/src/main/java/cwms/cda/ApiServlet.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,10 @@ public void init() {
504504
})
505505
.routes(this::configureRoutes)
506506
.options("/*", ctx -> {
507-
ctx.header("Access-Control-Allow-Origin", "*"); // Allow requests from any origin
508-
ctx.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); // Specify allowed methods
509-
ctx.header("Access-Control-Allow-Headers", "Content-Type, Authorization"); // Specify allowed headers
507+
// set by WAF and not correctly override
508+
// ctx.header("Access-Control-Allow-Origin", "*"); // Allow requests from any origin
509+
// ctx.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); // Specify allowed methods
510+
// ctx.header("Access-Control-Allow-Headers", "Content-Type, Authorization"); // Specify allowed headers
510511
ctx.status(200); // Respond with a 200 OK status
511512
})
512513
.javalinServlet();

0 commit comments

Comments
 (0)