Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
c0mpiler opened this issue Feb 13, 2018 · 0 comments
Open

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

c0mpiler opened this issue Feb 13, 2018 · 0 comments

Comments

@c0mpiler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant