Skip to content
Permalink
Browse files

Fixed a few typos

  • Loading branch information...
jodosha committed Jul 21, 2016
1 parent 437e449 commit b3d3dabaeffd9fd2535e55513ab53312c64b306c
@@ -45,12 +45,12 @@ Once _CDN mode_ is on, all the [asset helpers](/guides/helpers/assets) will retu
<link href="https://123.cloudfront.net/assets/application-9ab4d1f57027f0d40738ab8ab70aba86.css" type="text/css" rel="stylesheet">
```

## Subresurce Integrity
## Subresource Integrity

A CDN can dramatically improve page speed, but it can potentially open a security breach.
If the CDN that we're using is compromised and serves evil javascript files, we're exposing our users to security attacks like Cross Site Scripting (XSS).

To solve this problem browsers vendor introduced a defense called [Subresurce Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
To solve this problem browsers vendor introduced a defense called [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).

When enabled, the browser verifies that the checksum of the downloaded file, matches with the declared one.

@@ -73,7 +73,7 @@ The output will be:
The security problem described above doesn't concern only CDNs, but local files too.
Imagine we have a compromised file system and someone was able to replace our javascripts with evil files: we would be vulnerable to the same kind of attack.

As a defense against this security problem, Hanami **enables Subresurce Integrity by default in production.**
As a defense against this security problem, Hanami **enables Subresource Integrity by default in production.**
When we [precompile the assets](/guides/command-line/assets) at the deploy time, Hanami calculates the checksum of all our assets and it adds a special HTML attribute `integrity` to our asset tags like `<script>`.

```erb
@@ -6,7 +6,7 @@ title: Guides - Mailers Basic Usage

In the [previous section](/guides/mailers/overview), we generated a mailer, let's use it.

## Informations
## Information

Firstly, we need to specify sender and recipient(s) and the subject of the email.
For this purpose a mailer exposes three mandatory methods: `.from`, `.to`, `.subject` and two optional: `.cc`, `.bcc`.
@@ -4,7 +4,7 @@ title: Guides - Routing Testing

# Testing

Hanami applications has builtin facilities for routing unit tests
Hanami has builtin facilities for routing unit tests.

## Path Generation

@@ -71,4 +71,4 @@ end
```

When we use `.recognize`, the router returns a recognized route, which is an object designed only for testing purposes.
It carries on all the important informations about the route that we have hit.
It carries on all the important information about the route that we have hit.

0 comments on commit b3d3dab

Please sign in to comment.
You can’t perform that action at this time.