Skip to content

Fails behind nginx proxy #14

Description

@botagas

We get the following error when trying to log in or sign up when accessing via https://(subdomain.)domain.tld:
CSRF verification failed. Request aborted.

It could be fixed with:
CSRF_TRUSTED_ORIGINS = ["https://yourdomain.com", "https://www.yourdomain.com"]
Or possibly be fixed for API endpoints with:
CORS_ALLOW_ALL_ORIGINS = True

Just letting you know. In my case, I used with trusted origins, but in this case, each user that clones this repo and tries to put this behind nginx, would have to do the same. It would be best if some kind of other solution was done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions