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

limit-allow-origin-bug #503

Merged
merged 2 commits into from
Jul 5, 2024
Merged

limit-allow-origin-bug #503

merged 2 commits into from
Jul 5, 2024

Conversation

anetteOlli
Copy link
Contributor

Tydeligvis får vi origin headeren lower case fra ApiGateway.

image

@@ -83,7 +84,7 @@ private String readAllowedOrigin(RequestInfo requestInfo) {
if (originsList.contains(ALL_ORIGINS_ALLOWED)) {
return ALL_ORIGINS_ALLOWED;
}
var requestOrigin = requestInfo.getHeader("Origin");
Copy link
Contributor

Choose a reason for hiding this comment

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

HTTP header names should be case insensitive, so this is a weakness in our implementation in RequestInfo I would say.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Fixed the actual issue.

ketilaa
ketilaa previously approved these changes Jul 5, 2024
@anetteOlli anetteOlli merged commit e5328c9 into main Jul 5, 2024
5 checks passed
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