How To Add CSRF Trusted Origins To CloudBolt Instance

Overview

You may try setting up your CloudBolt Portal in an external URL that is causing an error similar to the example below:

django.security.csrf: Forbidden (Referer checking failed - https://yourcloudboltinstance.com/accounts/login/?next=/ does not match any trusted origins.): /accounts/login/, referer: https://yourcloudboltinstance.com/accounts/login/?next=/

Procedure

Add trusted URLs to your customer_settings.py file

  1. SSH to your CloudBolt instance

  2. cd to /var/opt/cloudbolt/proserv/

  3. Edit your customer_settings.py file with vi customer_settings.py

  4. Add the below line to your customer_settings.py and add URLs:

    CSRF_TRUSTED_ORIGINS = []
  5. Save and exit customer_settings.py

  6. Restart apache with service httpd restart

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.