-
-
Notifications
You must be signed in to change notification settings - Fork 354
feat(martin-server): add support for basic CORS configuration #1815
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
8aaccb1
feat(martin-server): add initial support for cors configuration
NINNiT 36a4b6d
feat: refactor
NINNiT 48d32a0
test: add some cors tests to martin/src/srv/config.rs
NINNiT eb41297
docs: add cors to config-file docs
NINNiT 6b5d309
docs: revert formatting
NINNiT 4b35b5f
chore: cleanup
NINNiT ea56fae
docs: fix origin property
NINNiT 1c6089c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c51805c
chore: remove unused import
NINNiT b4b82dc
feat(martin-server): change CORS configuration spec
soelder-trafficon 8881d86
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 99780a5
chore: ignore aider files in gitignore and dockerignore
NINNiT 0167559
Merge branch 'main' into feat/cors
CommanderStorm 782bc06
feat: add simple cors property validation
NINNiT 3a8d478
feat: add error handling for cors
NINNiT 480e35a
simplify testcase
CommanderStorm 9d90822
simplify the testcases a bit
CommanderStorm 00fccef
chore: sort aider string in gitignore and dockerignore
NINNiT 44e7d21
Merge branch 'main' into feat/cors
NINNiT 0e4ecfd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9f041a2
docs: update CORS docs in server-config.md
NINNiT 52af719
fix a few of the issues I introduced
CommanderStorm 3278e9f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 64d1133
feat(cors): added separate validation method, call it early
NINNiT 5ff41e7
docs(cors): cleanup nits
NINNiT e0ec65c
chore(cors): minor cleanups
NINNiT 56e4629
chore(cors): remove assert!(matches!()) in favor of assert_eq!
NINNiT f726b1d
fix clippy issues I caused
CommanderStorm e0d9eef
fix formatting
CommanderStorm 2d47add
Remove the second validation
CommanderStorm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ demo/ | |
| .DS_Store | ||
| target/ | ||
| **/*.rs.bk | ||
| .aider* | ||
| .idea/ | ||
| .vscode/ | ||
| test_log* | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| .DS_Store | ||
| target/ | ||
| **/*.rs.bk | ||
| .aider* | ||
| .idea/ | ||
| .vscode/ | ||
| test_log* | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.