[
https://issues.apache.org/jira/browse/FLINK-6367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983134#comment-15983134
]
ASF GitHub Bot commented on FLINK-6367:
---------------------------------------
Github user zentol commented on a diff in the pull request:
https://github.com/apache/flink/pull/3769#discussion_r113241117
--- Diff:
flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/WebMonitorConfig.java
---
@@ -78,4 +78,10 @@ public boolean isProgramSubmitEnabled() {
ConfigConstants.JOB_MANAGER_WEB_SUBMIT_ENABLED_KEY,
ConfigConstants.DEFAULT_JOB_MANAGER_WEB_SUBMIT_ENABLED);
}
+
+ public String getAllowOrigin() {
+ return config.getString(
+
ConfigConstants.JOB_MANAGER_WEB_ACCESS_CONTROL_ALLOW_ORIGIN.key(),
--- End diff --
You can simplify this by using
`Configuration#getString(ConfigOption<String> option)` instead.
> support custom header settings of allow origin
> ----------------------------------------------
>
> Key: FLINK-6367
> URL: https://issues.apache.org/jira/browse/FLINK-6367
> Project: Flink
> Issue Type: Sub-task
> Components: Webfrontend
> Reporter: shijinkui
> Assignee: shijinkui
>
> `jobmanager.web.access-control-allow-origin`: Enable custom access control
> parameter for allow origin header, default is `*`.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)