Skip to content

Turn off request forgery protection for milestone action to permit public caching of level pages#4804

Merged
philbogle merged 5 commits into
stagingfrom
no_request_forgery
Oct 26, 2015
Merged

Turn off request forgery protection for milestone action to permit public caching of level pages#4804
philbogle merged 5 commits into
stagingfrom
no_request_forgery

Conversation

@philbogle

Copy link
Copy Markdown
Contributor

Turn off request forgery protection for the milestone action in the activities controller in order to permit public caching of the level pages. (Request forgery protection depends on generating a unique secret for each session and so is incompatible with public caching.)

As the comments explain, it is necessary to explicitly turn it off for the milestone action because default RFP is inherited from ApplicationController.

@philbogle

Copy link
Copy Markdown
Contributor Author

@wjordan or @mehalshah: This is needed for public caching of level pages.

@mehalshah

Copy link
Copy Markdown
Contributor

LGTM

@philbogle

Copy link
Copy Markdown
Contributor Author

I need to look into the circleci timeout failure and see if it's spurious or related.

@philbogle

Copy link
Copy Markdown
Contributor Author

I determined that the timeout reproduced on staging as well and is unrelated to this change.

I am experimenting with increasing the timeout to see if that resolves the issue.

philbogle added a commit that referenced this pull request Oct 26, 2015
Turn off request forgery protection for milestone action to permit public caching of level pages
@philbogle philbogle merged commit a2c918c into staging Oct 26, 2015
deploy-code-org added a commit that referenced this pull request Oct 26, 2015
a2c918c Merge pull request #4804 from code-dot-org/no_request_forgery (philbogle)
711da5b Merge commit 'a1a312f' into no_request_forgery (Phil Bogle)
cddfa8e Merge pull request #4802 from code-dot-org/require_relative (philbogle)
a1a312f Increase app JS test timeout to reduce flakes (Phil Bogle)
4aae596 Automatically built. (Continuous Integration)
f2e49e9 Merge pull request #4806 from code-dot-org/hoc2015newsounds (Brendan Reville)
@davidsbailey davidsbailey deleted the no_request_forgery branch January 7, 2016 19:20
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