Skip to content

Commit

Permalink
fix: disable CSRF on REST API requests
Browse files Browse the repository at this point in the history
work around for bug in invenio-rest
  • Loading branch information
phette23 committed Feb 9, 2024
1 parent dd587c6 commit d3f4d0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ RDM_RECORDS_PERSONORG_SCHEMES.update(
SITE_UI_URL = "https://127.0.0.1"

SITE_API_URL = "https://127.0.0.1/api"
# TODO insecure but needed due to https://github.com/inveniosoftware/invenio-rest/issues/132
REST_CSRF_ENABLED = False

APP_RDM_DEPOSIT_FORM_DEFAULTS = {
"publication_date": lambda: datetime.now().strftime("%Y-%m-%d"),
Expand Down

0 comments on commit d3f4d0d

Please sign in to comment.