-
1. Re: Can I add Headers in HTTP responses of the Managment API ?
ehugonnet Jan 3, 2015 10:59 AM (in response to sewatech)You should be able to register a new handler in undertow for this or "hack" the existing management handler.
Maybe brian.stansberry or ctomc have a better idea for doing it ?
-
2. Re: Can I add Headers in HTTP responses of the Managment API ?
ctomc Jan 4, 2015 11:52 AM (in response to ehugonnet)1 of 1 people found this helpfulAt this time there is no proper extension point for adding http handlers to managment interface.
there is a jira for adding improvements in that area. Including CORS see [WFCORE-299] HTTP Management Interface Configuration - JBoss Issue Tracker for more details.
for time being you could modify the code that setups the mgmt server see code in wildfly-core/ManagementHttpServer.java at master · wildfly/wildfly-core · GitHub
Also you could send a PR with support for CORS
-
3. Re: Can I add Headers in HTTP responses of the Managment API ?
sewatech Jan 7, 2015 5:58 AM (in response to sewatech)Thanks Tomaz. I've put online a CORS version of my app. Sure that ehugonnet will develop it very soon.
-
4. Re: Can I add Headers in HTTP responses of the Managment API ?
ehugonnet Jan 9, 2015 4:12 AM (in response to sewatech)For basic CORS support you may take a look at https://github.com/ehsavoie/wildfly-core/tree/CORS
It creates a new allowed-origins attribute for http-interface in management which allows support for CORS requests.
-
5. Re: Can I add Headers in HTTP responses of the Managment API ?
sewatech Jan 9, 2015 4:52 AM (in response to ehugonnet)I've just tried it with ma demo app : http://demo.sewatech.fr/wf-console-cors, it's working fine.
Any plan to integrate it to the master, for the next release of WF 9 ?
-
6. Re: Can I add Headers in HTTP responses of the Managment API ?
ctomc Jan 9, 2015 5:36 AM (in response to sewatech)Alexis Hassler wrote:
I've just tried it with ma demo app : http://demo.sewatech.fr/wf-console-cors, it's working fine.
Any plan to integrate it to the master, for the next release of WF 9 ?
yes, follow [WFCORE-302] Enable CORS - JBoss Issue Tracker for details