Skip to content

Commit

Permalink
Whoops, I missed the alias_method
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed Mar 27, 2018
1 parent 1006cba commit 8378f13
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/upgrading-to-6-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ These classes are typically not directly instantiated by users of SecureHeaders.

This method is not typically directly called by users of SecureHeaders. Given that named overrides are no longer statically stored, fetching them no longer makes sense.

## `content_security_policy_nonce` has been renamed

While tag helpers such as `nonced_javascript_tag` and `nonced_style_tag`, the value for the nonce was available via `content_security_policy_nonce`. Rails 5.2 has implemented a method with the same name but clashes with the number of arguments. It has been renamed to`_content_security_policy_nonce` and will likely be removed in future versions.

## Configuration headers are no longer cached

Prior to 6.0.0 SecureHeaders pre-built and cached the headers that corresponded to the default configuration. The same was also done for named overrides. However, now that named overrides are applied dynamically, those can no longer be cached. As a result, caching has been removed in the name of simplicity. Some micro-benchmarks indicate this shouldn't be a performance problem and will help to eliminate a class of bugs entirely.
Expand Down

0 comments on commit 8378f13

Please sign in to comment.