-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds REST API CORS configuration file in karaf distribution
- Loading branch information
Showing
4 changed files
with
80 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
karaf/config/src/main/resources/org.apache.brooklyn.rest.filter.cors.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
################################################################################ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
################################################################################ | ||
|
||
# Enables experimental support for Cross Origin Resource Sharing (CORS) filtering in Apache Brooklyn REST API. | ||
# Disabled by default. | ||
# cors.enabled=false | ||
|
||
# @see CrossOriginResourceSharingFilter#setAllowOrigins(List<String>) | ||
# Coma separated values list of allowed origins. Access-Control-Allow-Origin header will be returned to client if Origin header in request is matching exactly a value among the list allowed origins. | ||
# If empty or not specified then all origins are allowed. No wildcard allowed origins are supported. | ||
# Example: | ||
# cors.allow.origins=http://foo.bar, http://foo1.bar | ||
|
||
# @see CrossOriginResourceSharingFilter#setAllowHeaders(List<String>) | ||
# Coma separated values list of allowed headers for preflight checks. | ||
# cors.allow.headers= | ||
|
||
# @see CrossOriginResourceSharingFilter#setAllowCredentials(boolean) | ||
# The value for the Access-Control-Allow-Credentials header. If false, no header is added. | ||
# If true, the header is added with the value 'true'. False by default. | ||
# cors.allow.credentials=false | ||
|
||
# @see CrossOriginResourceSharingFilter#setExposeHeaders(List<String>) | ||
# CSV list of non-simple headers to be exposed via Access-Control-Expose-Headers. | ||
# cors.expose.headers= | ||
|
||
# @see CrossOriginResourceSharingFilter#setMaxAge(Integer) | ||
# The value for Access-Control-Max-Age. If -1 then No Access-Control-Max-Age header will be send. | ||
# cors.max.age=-1 | ||
|
||
# @see CrossOriginResourceSharingFilter#setPreflightErrorStatus(Integer) | ||
# Preflight error response status, default is 200. | ||
# cors.preflight.error.status=200 | ||
|
||
# Do not apply CORS if response is going to be with UNAUTHORIZED status. | ||
# cors.block.if.unauthorized=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters