Skip to content

CORS header for swagger spec - Admin / Health endpoints #781

@c0mpiler

Description

@c0mpiler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions