Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add CORS origin environment variable #3191

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

ayan4m1
Copy link
Contributor

@ayan4m1 ayan4m1 commented Jun 19, 2023

This PR adds an environment variable, LEMMY_CORS_ORIGIN, which allows the user to specify a CORS origin to whitelist if not building in debug mode.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@dessalines
Copy link
Member

You need to run cargo +nightly fmt for this to pass lint.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nutomic Nutomic enabled auto-merge (squash) June 20, 2023 11:03
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.

3 participants