mirror of
https://github.com/langgenius/dify.git
synced 2026-04-10 03:00:33 -04:00
chore: knip fix (#34481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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