Skip to content

Allow extraHeaders for fetchNavigation #21

@KoljaTM

Description

@KoljaTM

In a new version the navigationService can be secured with a token authentication. In order to access it from the fsxa-api "fetchNavigation()" function, it should be possible to pass additional headers, e.g.

async fetchNavigation(
    initialPath: string | null,
    defaultLocale: string,
   extraHeaders?: Record<string, string[]>
  ): Promise<NavigationData | null> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions