diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2022-01-10 18:07:44 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2022-01-10 18:28:40 +0100 |
commit | 4269d3d64752f8465d55d5b571ff9e3cdb32d0e5 (patch) | |
tree | 83f5fe2e29ffb40033bd93d3cbcb2d0e11c9a3e2 /daemon/http.c | |
parent | Merge branch 'release-5-4-4' into 'master' (diff) | |
download | knot-resolver-4269d3d64752f8465d55d5b571ff9e3cdb32d0e5.tar.xz knot-resolver-4269d3d64752f8465d55d5b571ff9e3cdb32d0e5.zip |
doh2: fix CORS by adding `access-control-allow-origin: *`
For old doh we added this in commit a34aa1ee743;
with the new implementation we somehow forgot.
Diffstat (limited to 'daemon/http.c')
-rw-r--r-- | daemon/http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/http.c b/daemon/http.c index f340d86a..0f9551d2 100644 --- a/daemon/http.c +++ b/daemon/http.c @@ -695,6 +695,7 @@ static int http_send_response(struct http_ctx *ctx, int32_t stream_id, nghttp2_nv hdrs[] = { MAKE_STATIC_NV(":status", "200"), MAKE_STATIC_NV("content-type", "application/dns-message"), + MAKE_STATIC_NV("access-control-allow-origin", "*"), MAKE_NV("content-length", 14, size, size_len), MAKE_NV("cache-control", 13, max_age, max_age_len), }; |