Skip to content

Commit 0d5a9ae

Browse files
committed
Hint that OAI-PMH POST without csrf is save.
1 parent aa894d8 commit 0d5a9ae

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/controllers/oai_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# The controller for actions related to OAI-PMH
12
class OaiController < ApplicationController
2-
# This view only returns static public content and CSRF token authentication causes problems with OAI-PMH POST requests
3-
skip_before_action :verify_authenticity_token
3+
# codeql-suppress CSRF-Violation "CSRF token authentication causes problems with OAI-PMH POST requests and OAI-PMH POST is safe because it returns static public content"
4+
skip_before_action :verify_authenticity_token, only: [:index]
45

56
# GET /oai-pmh
67
def index

0 commit comments

Comments
 (0)