diff --git a/open_api_framework/conf/base.py b/open_api_framework/conf/base.py index 85df04a..a991cd5 100644 --- a/open_api_framework/conf/base.py +++ b/open_api_framework/conf/base.py @@ -416,8 +416,12 @@ # SESSION_COOKIE_SECURE = IS_HTTPS SESSION_COOKIE_HTTPONLY = True +# set same-site attribute to None to allow emdedding the SDK for making cross domain +# requests. +SESSION_COOKIE_SAMESITE = config("SESSION_COOKIE_SAMESITE", "Strict") CSRF_COOKIE_SECURE = IS_HTTPS +CSRF_COOKIE_SAMESITE = config("CSRF_COOKIE_SAMESITE", "Strict") X_FRAME_OPTIONS = "DENY"