Skip to content

Commit 5643f51

Browse files
committed
Fix X-Dataverse-Key
1 parent 760a888 commit 5643f51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/sphinx-guides/source/installation/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3608,7 +3608,7 @@ Can also be set via any `supported MicroProfile Config API source`_, e.g. the en
36083608
dataverse.cors.headers.allow
36093609
++++++++++++++++++++++++++++
36103610

3611-
Allowed headers for CORS requests. The default when this setting is missing is "Accept,Content-Type,X-Dataverse-Key,Range".
3611+
Allowed headers for CORS requests. The default when this setting is missing is "Accept,Content-Type,X-Dataverse-key,Range".
36123612
Multiple headers can be specified as a comma-separated list.
36133613

36143614
Example:

src/main/java/edu/harvard/iq/dataverse/filter/CorsFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void init(FilterConfig filterConfig) throws ServletException {
4848
if (allowCors) {
4949
methods = JvmSettings.CORS_METHODS.lookupOptional().orElse("PUT, GET, POST, DELETE, OPTIONS");
5050
allowHeaders = JvmSettings.CORS_ALLOW_HEADERS.lookupOptional()
51-
.orElse("Accept, Content-Type, X-Dataverse-Key, Range");
51+
.orElse("Accept, Content-Type, X-Dataverse-key, Range");
5252
exposeHeaders = JvmSettings.CORS_EXPOSE_HEADERS.lookupOptional()
5353
.orElse("Accept-Ranges, Content-Range, Content-Encoding");
5454
}

0 commit comments

Comments
 (0)