mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
10 lines
327 B
JavaScript
10 lines
327 B
JavaScript
|
export default {
|
||
|
name: 'csrf',
|
||
|
|
||
|
initialize: function (container) {
|
||
|
container.register('csrf:current', $('meta[name="csrf-param"]').attr('content'), { instantiate: false });
|
||
|
|
||
|
container.injection('route', 'csrf', 'csrf:current');
|
||
|
container.injection('controller', 'csrf', 'csrf:current');
|
||
|
}
|
||
|
};
|