mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 19:59:21 +08:00
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -144,7 +144,11 @@ export const getMaxToken = (modelId: string) => {
|
||||
|
||||
export const LOCALE_COOKIE_NAME = 'locale'
|
||||
|
||||
const COOKIE_DOMAIN = (process.env.NEXT_PUBLIC_COOKIE_DOMAIN || '').trim()
|
||||
const COOKIE_DOMAIN = getStringConfig(
|
||||
process.env.NEXT_PUBLIC_COOKIE_DOMAIN,
|
||||
DatasetAttr.DATA_PUBLIC_COOKIE_DOMAIN,
|
||||
'',
|
||||
).trim()
|
||||
export const CSRF_COOKIE_NAME = () => {
|
||||
if (COOKIE_DOMAIN) return 'csrf_token'
|
||||
const isSecure = API_PREFIX.startsWith('https://')
|
||||
|
||||
Reference in New Issue
Block a user