Skip to content

Commit

Permalink
Merge pull request #70 from talvbansal/csrf-docs
Browse files Browse the repository at this point in the history
Update CSRF docs as described in #69
  • Loading branch information
talvbansal authored Oct 3, 2017
2 parents 5f9dbaa + 9d79032 commit 15a28cc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,9 @@ Some cloud flysystems like `AWS S3` supports access modes. All File Uploads via

The Media Manager is written in `vue.js 2.0` and comes bundled with all the dependencies required to get going very quickly.

You will need to add the following to your layout if it does not already exist.
It provides the `csrfToken` used for the `vue-resource` http requests that the Media Manager will make.
```javascript
<script>
window.Laravel = <?php echo json_encode([
'csrfToken' => csrf_token(),
]); ?>
</script>
To avoid CSRF issues you will need to add the following to your layout if it does not already exist:
```html
<meta name="csrf-token" content="{{ csrf_token() }}">
```

## # Media Manager Components
Expand Down

0 comments on commit 15a28cc

Please sign in to comment.