Allows the Cache-Control Header in CORS header for jpa-example-server & CLI
This commit is contained in:
parent
6788eb992d
commit
9498247082
|
@ -274,6 +274,7 @@ public class Constants {
|
||||||
corsAllowedHeaders.add("Content-Type");
|
corsAllowedHeaders.add("Content-Type");
|
||||||
corsAllowedHeaders.add("Origin");
|
corsAllowedHeaders.add("Origin");
|
||||||
corsAllowedHeaders.add("Prefer");
|
corsAllowedHeaders.add("Prefer");
|
||||||
|
corsAllowedHeaders.add("X-FHIR-Starter");
|
||||||
corsAllowedHeaders.add("X-Requested-With");
|
corsAllowedHeaders.add("X-Requested-With");
|
||||||
CORS_ALLOWED_HEADERS = Collections.unmodifiableSet(corsAllowedHeaders);
|
CORS_ALLOWED_HEADERS = Collections.unmodifiableSet(corsAllowedHeaders);
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
<init-param>
|
<init-param>
|
||||||
<description>A comma separated list of allowed headers when making a non simple CORS request.</description>
|
<description>A comma separated list of allowed headers when making a non simple CORS request.</description>
|
||||||
<param-name>cors.allowed.headers</param-name>
|
<param-name>cors.allowed.headers</param-name>
|
||||||
<param-value>X-FHIR-Starter,Origin,Accept,X-Requested-With,Content-Type,Access-Control-Request-Method,Access-Control-Request-Headers,Prefer</param-value>
|
<param-value>Accept,Access-Control-Request-Headers,Access-Control-Request-Method,Cache-Control,Content-Type,Origin,Prefer,X-FHIR-Starter,X-Requested-With</param-value>
|
||||||
</init-param>
|
</init-param>
|
||||||
<init-param>
|
<init-param>
|
||||||
<description>A comma separated list non-standard response headers that will be exposed to XHR2 object.</description>
|
<description>A comma separated list non-standard response headers that will be exposed to XHR2 object.</description>
|
||||||
|
|
Loading…
Reference in New Issue