Skip to content

Commit 96fdba0

Browse files
committed
Use docs.redpanda.com for widget origin to avoid CORS issues
1 parent 2369221 commit 96fdba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netlify/edge-functions/proxy-api-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { DOMParser } from "https://deno.land/x/deno_dom@v0.1.56/deno-dom-wasm.ts
22

33
export default async (request, context) => {
44
const url = new URL(request.url);
5-
const originalOrigin = url.origin;
5+
const originalOrigin = "https://docs.redpanda.com";
66

77
// Redirects from old API paths to new ones
88
const redirects = {

0 commit comments

Comments
 (0)