Skip to content

allow environment variables in cors urls#4033

Merged
KristjanESPERANTO merged 3 commits intoMagicMirrorOrg:developfrom
khassel:cors-vars
Feb 8, 2026
Merged

allow environment variables in cors urls#4033
KristjanESPERANTO merged 3 commits intoMagicMirrorOrg:developfrom
khassel:cors-vars

Conversation

@khassel
Copy link
Collaborator

@khassel khassel commented Feb 8, 2026

and centralize and optimize replace regex.

Another follow up to #4029

With this PR you can use secrets in urls in browser modules if you use the cors proxy.

I will provide a new section in the docs concerning secret handling before next release.

@KristjanESPERANTO
Copy link
Collaborator

KristjanESPERANTO commented Feb 8, 2026

This looks great! Would it make sense to add a test for the new replaceSecretPlaceholder function?

@khassel
Copy link
Collaborator Author

khassel commented Feb 8, 2026

This looks great! Would it make sense to add a test for the new replaceSecretPlaceholder function?

done ...

@KristjanESPERANTO KristjanESPERANTO merged commit 1dc3032 into MagicMirrorOrg:develop Feb 8, 2026
9 checks passed
@khassel khassel deleted the cors-vars branch February 8, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants