Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cors_preflight_checks_controller.rb « jira_connect « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3f30c1e04df44829b100b5bf120222b7c8f8f0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module JiraConnect
  class CorsPreflightChecksController < ApplicationController
    feature_category :integrations

    skip_before_action :verify_atlassian_jwt!
    before_action :set_cors_headers

    def index
      return render_404 unless allow_cors_request?

      render plain: '', content_type: 'text/plain'
    end
  end
end