-
Notifications
You must be signed in to change notification settings - Fork 770
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
add CORS to rest server and config #550
Conversation
Codecov Report
@@ Coverage Diff @@
## master #550 +/- ##
==========================================
- Coverage 71.42% 71.21% -0.22%
==========================================
Files 62 62
Lines 11659 11765 +106
==========================================
+ Hits 8327 8378 +51
- Misses 2543 2585 +42
- Partials 789 802 +13
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks for your contribution. There is some comments. 😄
thanks for your input. i hope my changes works for you. |
thanks for your response. maybe a little bit change is needed 😃 |
no problem i learn a lot in go now ^^ |
zap.String("url", fmt.Sprintf("http://%s:%d", s.HttpHost, s.HttpPort))) | ||
zap.String("url", fmt.Sprintf("http://%s:%d", s.HttpHost, s.HttpPort)), | ||
zap.Strings("cors_methods", s.Config.Master.HttpCorsMethods), | ||
zap.Strings("cors_doamins", s.Config.Master.HttpCorsDomains), |
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.
Domains*
i have to add it because my frontend gave me some CORS errors. Feel free for some tests and let me know if i have something to change.