A WildFly Swarm CORS Filter Demo
./mvnw clean package
java -jar target/wildfly-swarm-cors-filter-demo-swarm.jar
curl localhost:8080 -v
You can see the response headers for CORS.
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
< Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
< Access-Control-Max-Age: -1
java -jar target/wildfly-swarm-cors-filter-demo-swarm.jar -Sprod
curl localhost:8080 -v
The Access-Control-Max-Age
header values changed.
< Access-Control-Max-Age: 86400