Skip to content

Commit d615732

Browse files
fix: query url when opa is served not from root path (#7644)
Signed-off-by: Oleg Koshmeliuk <oleg.koshmeliuk@gmail.com>
1 parent ff0a6c8 commit d615732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v1/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2986,7 +2986,7 @@ function query() {
29862986
'method': 'POST',
29872987
'body': body,
29882988
}
2989-
fetch(new Request('/v1/query', opts))
2989+
fetch(new Request('v1/query', opts))
29902990
.then(resp => resp.json())
29912991
.then(json => {
29922992
str = JSON.stringify(json, null, 2);

0 commit comments

Comments
 (0)