I am working with Intelij 2018 and the project works with wildfly 8.1 final. I change header setting in the file, but once I run the project the file is changed back and all setting are lost.
<!-- configuration to change -->
<filters>
<response-header name="Access-Control-Allow-Origin"
header-name="Access-Control-Allow-Origin" header-value="*" />
<response-header name="server-header" header-name="Server"
header-value="WildFly/8" />
<response-header name="x-powered-by-header"
header-name="X-Powered-By" header-value="Undertow/1" />
<response-header name="Access-Control-Allow-Headers"
header-name="Access-Control-Allow-Headers"
header-value="origin, content-type, accept, authorization, application" />
<response-header name="Access-Control-Allow-Credentials"
header-name="Access-Control-Allow-Credentials" header-value="true" />
<response-header name="Access-Control-Allow-Methods"
header-name="Access-Control-Allow-Methods" header-value="GET, POST, PUT, DELETE, OPTIONS, HEAD" />
<response-header name="Access-Control-Max-Age"
header-name="Access-Control-Max-Age" header-value="1209600" />
</filters>
From which file the basic configuration is taken I will modify it.
I think I may have found a solution for you - it may revolve around a bug.
If this works it was found via a hint from this JBoss forums page How to write on standalone.xml permanently?
Let me know if it worked!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With