Skip to content

Commit 200a4ae

Browse files
authored
[OPIK-3502] [BE] Add opikApiKey to CORS allowed headers and bump optimizer (#4512)
* [OPIK-3502] [BE] Add opikApiKey to CORS allowed headers and bump optimizer - Add RequestContext.OPIK_API_KEY to CORS allowed headers to enable local frontend testing against staging/remote backend - Bump opik-optimizer from 2.3.6 to 2.3.9 * [OPIK-3502] [BE] Add opikApiKey to CORS allowed headers and bump optimizer - Add RequestContext.OPIK_API_KEY to CORS allowed headers to enable local frontend testing against staging/remote backend - Bump opik-optimizer from 2.3.6 to 2.3.9
1 parent 8515d46 commit 200a4ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/opik-backend/src/main/java/com/comet/opik/infrastructure/http/CorsFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public class CorsFactory {
3131
COMET_SDK_API_HEADER,
3232
COMET_USERNAME_HEADER,
3333
COMET_REACT_VER_HEADER,
34-
RequestContext.WORKSPACE_HEADER);
34+
RequestContext.WORKSPACE_HEADER,
35+
// used by FE team to test Optimization Studio locally vs remote BE
36+
RequestContext.OPIK_API_KEY);
3537

3638
private static final Set<String> ALLOWED_METHODS = Set.of(
3739
HttpMethod.OPTIONS.toString(),

apps/opik-python-backend/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ schedule==1.2.1
2727
tiktoken==0.9.0
2828
redis==6.4.0
2929
rq==2.6.0
30-
opik-optimizer==2.3.6
30+
opik-optimizer==2.3.9
3131
gepa==0.0.17

0 commit comments

Comments
 (0)