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

Created on 25 March 2021, over 3 years ago
Updated 18 October 2023, 8 months 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 about 2 hours 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.69.0 2024