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

CCDM: protect against CSRF #6835

Merged
merged 2 commits into from
Nov 5, 2019
Merged

CCDM: protect against CSRF #6835

merged 2 commits into from
Nov 5, 2019

Conversation

manolo
Copy link
Member

@manolo manolo commented Nov 5, 2019

Fixes #6762


This change is Reviewable

@manolo manolo added the hilla Issues related to Hilla label Nov 5, 2019
@manolo manolo requested review from platosha and qtdzz November 5, 2019 08:05
@manolo manolo self-assigned this Nov 5, 2019
@ujoni ujoni added the +0.0.1 label Nov 5, 2019
Copy link
Contributor

@qtdzz qtdzz left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1.
Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained (waiting on @manolo and @platosha)


flow-server/src/main/java/com/vaadin/flow/server/connect/auth/VaadinConnectAccessChecker.java, line 110 at r1 (raw file):

X-Requested-With

Should we have this and the header value as Java constants? And reuse them in the test as well.

Copy link
Member Author

@manolo manolo left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained (waiting on @platosha and @qtdzz)


flow-server/src/main/java/com/vaadin/flow/server/connect/auth/VaadinConnectAccessChecker.java, line 110 at r1 (raw file):

Previously, qtdzz (Tien Nguyen) wrote…
X-Requested-With

Should we have this and the header value as Java constants? And reuse them in the test as well.

I would not make them available in the API. Do you see another reason but tests ?

Copy link
Contributor

@qtdzz qtdzz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained (waiting on @platosha)


flow-server/src/main/java/com/vaadin/flow/server/connect/auth/VaadinConnectAccessChecker.java, line 110 at r1 (raw file):

Previously, manolo (Manuel Carrasco Moñino) wrote…

I would not make them available in the API. Do you see another reason but tests ?

Yeah. It is fair enough.

@qtdzz qtdzz merged commit 72c5d98 into ccdm Nov 5, 2019
@qtdzz qtdzz deleted the mcm/ccdm/csrf branch November 5, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hilla Issues related to Hilla +0.0.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants