open-vault/ui/app/instance-initializers/track-csp-event.js
Matthew Irish 4b885c080c
Ui request forwarding error (#4275)
* add ember-cli-content-security-policy
* only enable client side CSP when not in production - the go side handles this otherwise
* add service that handles and stores CSP violations via the securitypolicyviolation event
* update auth form component to show a specialized message when there's a CSP error
* move to computed prop for showing the CSP error message
* fix typos
2018-04-05 16:36:33 -05:00

10 lines
183 B
JavaScript

export function initialize(appInstance) {
let service = appInstance.lookup('service:csp-event');
service.attach();
}
export default {
name: 'track-csp-event',
initialize,
};