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

Ignore appending allow origin if already present #1371

Merged
merged 7 commits into from
Jan 20, 2025

Conversation

akrambek
Copy link
Contributor

No description provided.

public void shouldIgnoreExplicitAllowOrigin() throws Exception
{
k3po.finish();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good.

We also need shouldIgnoreAllowOrigin() that uses server.access.control.cross.origin.yaml and confirms that * is not sent, otherwise we're not yet proving which value is taking precedence with only shouldIgnoreExplicitAllowOrigin().

@akrambek akrambek marked this pull request as ready for review January 17, 2025 04:59
"${net}/ignore.explicit.allow.origin/client",
"${app}/ignore.explicit.allow.origin/server",
})
public void shouldIgnoreAllowOriginWithNoExplicitImplicitOrigin() throws Exception
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public void shouldIgnoreAllowOriginWithNoExplicitImplicitOrigin() throws Exception
public void shouldIgnoreExplicitAllowOriginWhenImplicit() throws Exception

"${net}/ignore.explicit.allow.origin/client",
"${app}/ignore.explicit.allow.origin/server",
})
public void shouldIgnoreExplicitAllowOrigin() throws Exception
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public void shouldIgnoreExplicitAllowOrigin() throws Exception
public void shouldIgnoreExplicitAllowOriginWhenExplicit() throws Exception

@jfallows jfallows merged commit b5a7662 into aklivity:develop Jan 20, 2025
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