-
Notifications
You must be signed in to change notification settings - Fork 784
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
[Merged by Bors] - Add ability to configure CORS header #1345
Conversation
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.
Nice! Only one super small suggestion for the CLI help text.
beacon_node/src/cli.rs
Outdated
Arg::with_name("http-allow-origin") | ||
.long("http-allow-origin") | ||
.value_name("ORIGIN") | ||
.help("Set the value of the Access-Control-Allow-Origin response HTTP header") |
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.
Do you think it might be helpful to add Put *, to allow any origin
(or similar) to this help text? I'm not sure I'd know what to set it to.
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.
Added. It won't do any harm.
787a56e
to
760e936
Compare
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.
Great!
bors r+
## Issue Addressed #1177 ## Proposed Changes Add a command line option (`--http-allow-origin`) and a config item for configuring the `Access-Control-Allow-Origin` response header. This should unblock making XMLHttpRequests.
Pull request successfully merged into master. Build succeeded: |
Issue Addressed
#1177
Proposed Changes
Add a command line option (
--http-allow-origin
) and a config item for configuring theAccess-Control-Allow-Origin
response header. This should unblock making XMLHttpRequests.