Repository navigation
Typo in .env.example - #5298
Merged
Merged
Typo in .env.example#5298
Conversation
Security Review ✅
|
elias-ba
approved these changes
Dec 4, 2026
elias-ba
left a comment
Contributor
There was a problem hiding this comment.
@taylordowns2000 @stuartc I am approving and merging this one. It is the simplest and cheapest fix and the right one for now since every deployment already uses CORS_ORIGIN.
I wonder if the singular name is part of why this keeps tripping people up, because it hides that the variable takes a list of origins. We could read CORS_ORIGINS and keep CORS_ORIGIN as a deprecated fallback for a release or two. Happy to open an issue for it if you guys think this matters, I am not sure it does.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5298 +/- ##
=======================================
- Coverage 91.9% 91.9% -0.0%
=======================================
Files 482 482
Lines 24481 24481
=======================================
- Hits 22490 22489 -1
- Misses 1991 1992 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@stuartc , this maybe explains why I edited your email reply last night, and why you edited it back this morning? 🤦
The ENV variable that lightning reads is called
CORS_ORIGIN(this is what we use in our deployments) and it looks like the.env.examplewas wrong.(I'm assuming you were basing your
CORS_ORIGINS—with anSat the end—concept on the example; I was looking at the underlying code and the deployment repo. I'm sure this is not the first time it's tripped someone up?)