Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF verification failed. Request aborted. #299

Closed
aadityarkrishnan opened this issue May 9, 2024 · 2 comments
Closed

CSRF verification failed. Request aborted. #299

aadityarkrishnan opened this issue May 9, 2024 · 2 comments
Labels
no-issue-activity Stale action

Comments

@aadityarkrishnan
Copy link

aadityarkrishnan commented May 9, 2024

image

Getting above exception while trying to configure. Any fixes for this.

@aadityarkrishnan
Copy link
Author

MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'backend.middleware.AssumeRoleMiddleware',
'base_app.middleware.profile_group_middleware',
]

Verify that CSRF_TRUSTED_ORIGINS includes all relevant domains

CSRF_TRUSTED_ORIGINS = ['https://.okta.com', 'https://*.corporate..com']

Copy link

github-actions bot commented Jun 9, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the no-issue-activity Stale action label Jun 9, 2024
@mostafa mostafa closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity Stale action
Projects
None yet
Development

No branches or pull requests

2 participants