Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17167

Incorrect CORS code fragment in Spring Framework Documentation

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.8
    • Fix Version/s: 5.0.9, 5.1 RC2
    • Component/s: [Documentation]
    • Labels:
      None

      Description

      Section Web on Servlet Stack, paragraph 1.7.5. CORS Filter and section Web on Servlet Stack, paragraph 1.7.5. CORS WebFilter contain snippet of code with incorrect statements.
      The incorrect statements are:

      • config.addAllowedHeader(""); 
      • config.addAllowedMethod("");

      These statements have no sense. There may be a problem with HTML. According to Spring Framework Reference Documentation 4.3.9 I think there should be following statements:

      • config.addAllowedHeader("*"); 
      • config.addAllowedMethod("*");

        Attachments

          Activity

            People

            Assignee:
            snicoll Stéphane Nicoll
            Reporter:
            shryb Sviatoslav Hryb
            Last updater:
            Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 36 weeks, 5 days ago