mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
chore: knip fix (#34481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
autofix-ci[bot]
parent
985b41c40b
commit
36e840cd87
@@ -8,7 +8,7 @@ type DevProxyEnv = Partial<Record<
|
||||
string
|
||||
>>
|
||||
|
||||
export type DevProxyTargets = {
|
||||
type DevProxyTargets = {
|
||||
consoleApiTarget: string
|
||||
publicApiTarget: string
|
||||
}
|
||||
@@ -55,7 +55,7 @@ export const isAllowedDevOrigin = (origin?: string | null) => {
|
||||
}
|
||||
}
|
||||
|
||||
export const applyCorsHeaders = (headers: Headers, origin?: string | null) => {
|
||||
const applyCorsHeaders = (headers: Headers, origin?: string | null) => {
|
||||
if (!isAllowedDevOrigin(origin))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user