Skip to content

Commit

Permalink
Allow accessing missing-buckets-header in CORS requests (#3270)
Browse files Browse the repository at this point in the history
* allow accessing missing-buckets-header in cors requests (fixes #3269)

* update changelog

* fix syntax error
  • Loading branch information
philippotto authored Sep 24, 2018
1 parent 46bbe97 commit 5496c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md).

### Fixed

-
- Fixed a bug which caused data to not be displayed correctly if adjacent data does not exist.[#3270](https://github.com/scalableminds/webknossos/pull/3270)

### Removed

Expand Down
3 changes: 2 additions & 1 deletion webknossos-datastore/app/DsRequestHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class DsRequestHandler @Inject() (router: Router, errorHandler: HttpErrorHandler
"Access-Control-Allow-Origin" -> "*",
"Access-Control-Max-Age" -> "600",
"Access-Control-Allow-Methods" -> "POST, GET, DELETE, PUT, HEAD, PATCH, OPTIONS",
"Access-Control-Allow-Headers" -> request.headers.get("Access-Control-Request-Headers").getOrElse(""))
"Access-Control-Allow-Headers" -> request.headers.get("Access-Control-Request-Headers").getOrElse(""),
"Access-Control-Expose-Headers" -> "MISSING-BUCKETS")
})
} else {
super.routeRequest(request)
Expand Down

0 comments on commit 5496c34

Please sign in to comment.