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 origin header to ajax requests in BaseWicketTester #187

Closed

Conversation

amichalowski
Copy link
Contributor

@amichalowski amichalowski commented Nov 5, 2016

In commits assigned to this issue:
https://issues.apache.org/jira/browse/WICKET-6245

There are following changes in CsrfPreventionRequestCycleListener:

  • If origin header doesn't exist referer header can be used.
  • Default no origin behavior was changed to abort.

But the wicket tester doesn't send Origin or Referer header.

Additionally the CsrfPreventionRequestCycleListenerTest.withoutOriginAllowed() method checks Abort action instead Allow.

@martin-g
Copy link
Member

martin-g commented Nov 8, 2016

+1!

@martin-g
Copy link
Member

I think this should be merged before 7.5.1/7.6.0.
@papegaaij , @dashorst WDYT ?

@papegaaij
Copy link
Contributor

I think this is nice to have, but not crucial. I'd go for 7.6

@dashorst
Copy link
Contributor

7.6 is fine.

@martin-g
Copy link
Member

@martin-g
Copy link
Member

Merged!
Thank you, @amichalowski !

@martin-g
Copy link
Member

Please close this issue!

@martin-g
Copy link
Member

@amichalowski Ping!

@amichalowski
Copy link
Contributor Author

closed;
thank you

@amichalowski amichalowski deleted the wicket-tester-origin-header branch November 18, 2016 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants