Skip to content

CSRFProtect() cause an error #24

@ockan

Description

@ockan

when apply csrf with CSRFProtect(), got an error:

Traceback (most recent call last):
  File "D:\py\bust\work\main.py", line 15, in <module>
    csrf.init_app(app)
  File "D:\py\bust\env\Lib\site-packages\bustapi\auth\csrf.py", line 40, in init_app
    @app.context_processor
     ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'BustAPI' object has no attribute 'context_processor'. Did you mean: 'shell_context_processor'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions