Include allowedOriginsPatterns in default.services.yml (regex matching for CORS)

Created on 25 March 2021, over 3 years ago
Updated 18 October 2023, about 1 year ago

Problem/Motivation

asm89/stack-cors added support for using regex patterns to match the origin header. That allows to do partial-wildcard matching for CORS, which is very useful.

Steps to reproduce

N/A

Proposed resolution

Add default entry for cors.config.allowedOriginsPatterns in default.services.yml.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

default.services.yml now includes allowedOriginsPatterns, which allows to use regex patterns for CORS matching. No pattern is set by default, so existing sites will continue working the same, honoring allowedOrigins (whether customized or not).

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Documentation 

Last updated 1 day ago

No maintainer
Created by

🇨🇴Colombia jedihe

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024