diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx
index 1485964198..83a7ffd553 100644
--- a/web/app/components/app/app-publisher/index.tsx
+++ b/web/app/components/app/app-publisher/index.tsx
@@ -314,10 +314,10 @@ const AppPublisher = ({
{!isAppAccessSet &&
{t('app.publishApp.notSetDesc')}
}
}
-
+
}
>
@@ -326,10 +326,10 @@ const AppPublisher = ({
{appDetail?.mode === 'workflow' || appDetail?.mode === 'completion'
? (
-
+
}
>
diff --git a/web/app/signin/components/sso-auth.tsx b/web/app/signin/components/sso-auth.tsx
index 960d082157..bb98eb2878 100644
--- a/web/app/signin/components/sso-auth.tsx
+++ b/web/app/signin/components/sso-auth.tsx
@@ -34,7 +34,7 @@ const SSOAuth: FC = ({
}
else if (protocol === SSOProtocol.OIDC) {
getUserOIDCSSOUrl(invite_token).then((res) => {
- document.cookie = `user-oidc-state=${res.state}`
+ document.cookie = `user-oidc-state=${res.state};Path=/`
router.push(res.url)
}).finally(() => {
setIsLoading(false)
@@ -42,7 +42,7 @@ const SSOAuth: FC = ({
}
else if (protocol === SSOProtocol.OAuth2) {
getUserOAuth2SSOUrl(invite_token).then((res) => {
- document.cookie = `user-oauth2-state=${res.state}`
+ document.cookie = `user-oauth2-state=${res.state};Path=/`
router.push(res.url)
}).finally(() => {
setIsLoading(false)