-
Notifications
You must be signed in to change notification settings - Fork 542
Corsfilter fix #12151
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
Open
beepsoft
wants to merge
21
commits into
IQSS:develop
Choose a base branch
from
beepsoft:cors-filter-fix
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Corsfilter fix #12151
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2f2d643
Fix CorsFilter invocation inconsistency
beepsoft a5e0217
Fix imports
beepsoft cdcd840
Add CorsIT for minimal CORS header checking
beepsoft 4628519
Make it ParameterizedTest, add more endpoints
beepsoft d665c70
Fix code style
beepsoft f6eeaf1
Add ERROR and ASYNC dispatcher type and more docs
beepsoft 4b02c85
Use idiomatic RestAssured assertions
beepsoft 8562c61
Add CorsIT to integration-tests.txt
beepsoft c78f482
Add cors-filter-fix.md
beepsoft 699c9fc
Update tests/integration-tests.txt
beepsoft 20ce4e2
docs: move big-data-support from developers to installation guide #12161
poikilotherm 36c37ef
docs(installation): expand CORS documentation and reorganize settings…
poikilotherm 76ca085
docs: clarify and relocate general CORS documentation for external to…
poikilotherm 3cb4bb3
docs,style(installation): clarify CORS options default behavior and e…
poikilotherm b09e63a
docs(installation): expand and reorganize S3 CORS documentation #12161
poikilotherm c5d5353
chore(docs): update Read the Docs configuration to Ubuntu 24.04 and P…
poikilotherm 0464396
style(api): refactor CorsIT to improve readability and comprehensibility
poikilotherm fc12341
warn doc writers about new dep: sphinx-reredirects
pdurbin 1eab9a2
doc tweaks
pdurbin 2cac1fe
docs(cors): clarify CORS filter behavior, expand documentation, and r…
poikilotherm ed07f96
test(cors): simplify CorsIT to only assert presence of headers
poikilotherm 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
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ## CORS Filter Fix | ||
|
|
||
| Fixed an inconsistency where the `CorsFilter` was not always being invoked when accessing `/api/...` endpoints, preventing these endpoints from being used from webapps even when CORS was properly configured. See #12151. | ||
|
|
||
| In addition, the documentation around the Dataverse features regarding CORS has been extended and improved. The "Big Data" page has been moved from the development section to the installation section of the guides. See #12161. | ||
|
|
||
| ## Updates for Documentation Writers | ||
|
|
||
| A new dependency called "sphinx-reredirects" has been added. Please re-run the `pip install -r requirements.txt` setup [step](https://dataverse-guide--12151.org.readthedocs.build/en/12151/contributor/documentation.html#building-the-guides-with-sphinx) to update your environment. Otherwise you might see an error like `Could not import extension sphinx_reredirects`. |
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
10 changes: 10 additions & 0 deletions
10
doc/sphinx-guides/source/_static/installation/cors/cors.json
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "CORSRules": [ | ||
| { | ||
| "AllowedOrigins": ["*"], | ||
| "AllowedHeaders": ["*"], | ||
| "AllowedMethods": ["PUT", "GET"], | ||
| "ExposeHeaders": ["ETag", "Accept-Ranges", "Content-Encoding", "Content-Range"] | ||
| } | ||
| ] | ||
| } |
13 changes: 13 additions & 0 deletions
13
doc/sphinx-guides/source/_static/installation/cors/cors.xml
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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | ||
| <CORSRule> | ||
| <AllowedOrigin>*</AllowedOrigin> | ||
| <AllowedHeader>*</AllowedHeader> | ||
| <AllowedMethod>PUT</AllowedMethod> | ||
| <AllowedMethod>GET</AllowedMethod> | ||
| <ExposeHeader>ETag</ExposeHeader> | ||
| <ExposeHeader>Accept-Ranges</ExposeHeader> | ||
| <ExposeHeader>Content-Encoding</ExposeHeader> | ||
| <ExposeHeader>Content-Range</ExposeHeader> | ||
| </CORSRule> | ||
| </CORSConfiguration> |
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
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
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.
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.