fluent/fluentd · error · Fluent::ConfigError

Cannot enable cors_allow_credentials without specific origin

Error message

Cannot enable cors_allow_credentials without specific origins

What it means

Error "Cannot enable cors_allow_credentials without specific origins" thrown in fluent/fluentd.

Source

Thrown at lib/fluent/plugin/in_http.rb:124

      # default parsers
      @parser_msgpack = nil
      @parser_json = nil
      @default_time_parser = nil
      @default_keep_time_key = nil
      @float_time_parser = nil

      # <parse> configured parser
      @custom_parser = nil
    end

    def configure(conf)
      compat_parameters_convert(conf, :parser)

      super

      if @cors_allow_credentials
        if @cors_allow_origins.nil? || @cors_allow_origins.include?('*')
          raise Fluent::ConfigError, "Cannot enable cors_allow_credentials without specific origins"
        end
      end

      raise Fluent::ConfigError, "'add_tag_prefix' parameter must not be empty" if @add_tag_prefix && @add_tag_prefix.empty?

      m = if @parser_configs.first['@type'] == 'in_http'
            @parser_msgpack = parser_create(usage: 'parser_in_http_msgpack', type: 'msgpack')
            @parser_msgpack.time_key = nil
            @parser_msgpack.estimate_current_event = false
            @parser_json = parser_create(usage: 'parser_in_http_json', type: 'json')
            @parser_json.time_key = nil
            @parser_json.estimate_current_event = false

            default_parser = parser_create(usage: '')
            @format_name = 'default'
            @parser_time_key = default_parser.time_key
            @default_time_parser = default_parser.get_time_parser
            @default_keep_time_key = default_parser.keep_time_key

View on GitHub (pinned to dd45c6e18d)

When it happens

Trigger: Thrown at lib/fluent/plugin/in_http.rb:124 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of fluent/fluentd@dd45c6e18d (2026-08-21). Data as JSON: /api/errors/b6d1a3f398a2b4c6. Report an issue: GitHub.