Allowlist jsonapi paths with locale prefix

Created on 19 December 2023, about 1 year ago
Updated 2 January 2024, 12 months ago

Problem/Motivation

On install this module adds the following allow list rules for anonymous login:

~/jsonapi
~/jsonapi/*

Those rules do no match when using a URL with a locale prefix

Steps to reproduce

* Install using Umami
* Enable this module
* Navigate to /en/jsonapi/node/article as an anonymous user.
* You will be redirected to login instead of getting an API response.

Proposed resolution

Add the following rules to account for this:

~/*/jsonapi
~/*/jsonapi/*

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brianperry

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024