qbit icon indicating copy to clipboard operation
qbit copied to clipboard

CORS header for swagger spec - Admin / Health endpoints

Open c0mpiler opened this issue 8 years ago • 0 comments

Sorry, if I missed this in the documentation.

I followed the hello word tutorial to get the basic service skeleton setup. I can access the Swagger spec, that gets generated via - :7777/__admin/meta/

But the swagger-ui cannot read the spec and complains about missing CORS header. I was able to set the header for the REST services using the textResponseDecorator and the binaryResponseDecorator. But is it possible to add the header to the AdminBuilder / health end-points too ?

https://gist.github.com/c0mpiler/550b03ed91d2a6988953c8513f9ad272

c0mpiler avatar Feb 13 '18 23:02 c0mpiler