Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-139556

Refactor uses of fetch so that it uses headers from a central location

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JS APIs and Utilities
    • Labels:
      None

      Description

      We have a lot of instances of

      new Headers({
      			Accept: 'application/json',
      			'Accept-Language': themeDisplay.getBCP47LanguageId(),
      			'Content-Type': 'application/json',
      		})
      

      Ideally we can export these from our fetch util. That way we don't have to specify this all throughout DXP

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            bryce.osterhaus Bryce Osterhaus
            Recent user:
            Bryce Osterhaus
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package