-
Notifications
You must be signed in to change notification settings - Fork 105
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
Adds cors support #477
Adds cors support #477
Conversation
Hi @schmetzyannick , |
@schmetzyannick If you would extend your PR to also register Spring web (https://spring.io/guides/gs/rest-service-cors/) and Stomp |
@nitram509 thanks for your quick feedback and sorry for my code. It is now 7 years ago that i wrote my last java code and I never worked with spring :S So please double check it ;) Yes I think that the unset CORS properties for the REST connection is causing the second problem described in #476 |
@nitram509 deployments ar now working fine in k8s when I have only one gateway (see camunda helm chart), would you like an example.yaml file to setup simple monitor on k8s? And if so I would suggest a seperate PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @schmetzyannick
thanks for updating the PR.
I made some smaller comments and would be glad you incorporate them in the PR as well.
With these proposals applied, I would be good to go for this PR.
BUT, I wonder about the overall PR does not seem to work.
See my next comment (with details).
I did run your code locally and set this URL: I do expect, that I would now see HTTP response headers like this How does it work for you? |
Co-authored-by: Martin W. Kirst <[email protected]>
Hi @nitram509, I can confirm your screenshots for the REST connection. For my understanding, the spring-projects/spring-framework#20959 |
@schmetzyannick thanks for shedding a light, but something I seem to miss... I did set the Unfortunately, the headers are not set... Is there anything left in your environment configuration, which might alter the behavior? PS: I hesitate to merge until I know how to use/activate the feature. |
Hi @nitram509, I think you should setup an environement where you really perform a cors request. So the origin should differ from the hostname of the simple-monitore service. If you have a k8s cluster, I could provide my yaml file. Another possiblity would be a proxy on your machine which forwards requests to a VM, which then runs the simple-monitor service. |
@nitram509 can i provide you something to get this pr merged? |
@schmetzyannick I's sorry for the delay. One minor point: the comment in the README is could be somewhat more obvious - it took me a while to spot the "s" difference. For future contributions, please provide a test case as well. Thanks for your contribution 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor issues, will solve them on my own.
…r CORS, improve README, fix broken character encoding
Related to #476