{"record":{"id":"b6d1a3f398a2b4c6","repo":"fluent/fluentd","slug":"cannot-enable-cors-allow-credentials-without-speci","errorCode":null,"errorMessage":"Cannot enable cors_allow_credentials without specific origins","messagePattern":"Cannot enable cors_allow_credentials without specific origins","errorType":"exception","errorClass":"Fluent::ConfigError","httpStatus":null,"severity":"error","filePath":"lib/fluent/plugin/in_http.rb","lineNumber":124,"sourceCode":"      # default parsers\n      @parser_msgpack = nil\n      @parser_json = nil\n      @default_time_parser = nil\n      @default_keep_time_key = nil\n      @float_time_parser = nil\n\n      # <parse> configured parser\n      @custom_parser = nil\n    end\n\n    def configure(conf)\n      compat_parameters_convert(conf, :parser)\n\n      super\n\n      if @cors_allow_credentials\n        if @cors_allow_origins.nil? || @cors_allow_origins.include?('*')\n          raise Fluent::ConfigError, \"Cannot enable cors_allow_credentials without specific origins\"\n        end\n      end\n\n      raise Fluent::ConfigError, \"'add_tag_prefix' parameter must not be empty\" if @add_tag_prefix && @add_tag_prefix.empty?\n\n      m = if @parser_configs.first['@type'] == 'in_http'\n            @parser_msgpack = parser_create(usage: 'parser_in_http_msgpack', type: 'msgpack')\n            @parser_msgpack.time_key = nil\n            @parser_msgpack.estimate_current_event = false\n            @parser_json = parser_create(usage: 'parser_in_http_json', type: 'json')\n            @parser_json.time_key = nil\n            @parser_json.estimate_current_event = false\n\n            default_parser = parser_create(usage: '')\n            @format_name = 'default'\n            @parser_time_key = default_parser.time_key\n            @default_time_parser = default_parser.get_time_parser\n            @default_keep_time_key = default_parser.keep_time_key","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/fluent/fluentd/blob/dd45c6e18dc7be33b5e5a0f0767bf46307ff5626/lib/fluent/plugin/in_http.rb#L106-L142","documentation":"Error \"Cannot enable cors_allow_credentials without specific origins\" thrown in fluent/fluentd.","triggerScenarios":"Thrown at lib/fluent/plugin/in_http.rb:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd45c6e18dc7be33b5e5a0f0767bf46307ff5626","analyzedAt":"2026-08-21T16:22:07.332Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}