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

add cors to version mismatch #3504

Merged
merged 2 commits into from
May 21, 2021
Merged

Conversation

jrhizor
Copy link
Contributor

@jrhizor jrhizor commented May 20, 2021

We need to add CORS to the Version Mismatch Server.

private static final String ALLOW_ORIGIN = "Access-Control-Allow-Origin";
private static final String ALLOW_HEADERS = "Access-Control-Allow-Headers";
private static final String ALLOW_METHODS = "Access-Control-Allow-Methods";
public static final String ALLOW_ORIGIN = "Access-Control-Allow-Origin";
Copy link
Contributor

Choose a reason for hiding this comment

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

Small question, as we already use com.google.common.collect package that is part of guava, isn't it better to use com.google.common.net.HttpHeaders here and use
HttpHeaders.ACCESS_CONTROL_ALLOW_HEADERS and etc instead?

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 idea.

@jrhizor jrhizor merged commit 86d6640 into master May 21, 2021
@jrhizor jrhizor deleted the jrhizor/add-cors-to-version-mismatch branch May 21, 2021 00:46
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