Skip to content

CSRF on Falsk monitoring dashboard not working #411

@AmiyaSah14

Description

@AmiyaSah14

Describe the bug
A clear and concise description of what the bug is.
I've imported flask_monitoringdashboard in my flask app as follows:
import flask_monitoringdashboard as dashboard

and have used in the app as follows:
dashboard.config.from_file('config.cfg')
dashboard.bind(app)
I've the respective config.cfg file too.

Flask Monitoring Dashboard is working fine if there is no CSRF implementation in the app.
If I use CSRF in the app then it's working fine for the app, but while logging into the flask monitoring dashboard its throwing CSRF missing token exception.

So how to implement CSRF for the Flask Monitoring Dashboard ?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS 10.14.3]
  • Browser [e.g. chrome, safari]
  • FMD Version [e.g. 2.1.4]

Additional context
Add any other context about the problem here.

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