fix: proxy archived 3d assets for browser loading
This commit is contained in:
parent
dee8019efd
commit
2f5c2fca50
@ -10,6 +10,8 @@ const THREE_ASSET_BROWSER_CACHE_CONTROL =
|
||||
function isAllowedModelHost(hostname: string) {
|
||||
const normalized = hostname.toLowerCase();
|
||||
return (
|
||||
normalized === "bbyy.ai" ||
|
||||
normalized.endsWith(".bbyy.ai") ||
|
||||
normalized === "tripo3d.com" ||
|
||||
normalized.endsWith(".tripo3d.com") ||
|
||||
normalized.includes("worldlabs") ||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
const THREE_ASSET_PROXY_PATH = "/api/canvas/3d/model-proxy";
|
||||
|
||||
const PROXY_HOST_KEYWORDS = [
|
||||
"bbyy.ai",
|
||||
"tripo3d.com",
|
||||
"worldlabs",
|
||||
"marble",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user