Skip to content

[feature request] Passing Authorization (Bearer) after enabled "middleware.web.keyauth" on backendΒ #40

@rognoni

Description

@rognoni

Hello πŸ‘‹
is this the only way at the moment to pass the KEY AUTH ?

  const res = await fetch(`${envConfig.backendUrl}/jobs?page=${page}&q=${q}`, {
    cache: 'no-cache',
    headers: {
      Authorization: `Bearer 24c8e5bb-e06b-46c8-a02e-28c1be99914c`,
    },
  });
  if (!res.ok) {
    throw new Error('Failed to fetch data');
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions