hunk.code_window: 		w.Header().Add("X-Frame-Options", "DENY")
   		next.ServeHTTP(w, r)
   	})
   }
  
hunk.labels: add keep keep keep
hunk.after_edit: 		w.Header().Add("X-XSS-Protection", "1; mode=block")
   		w.Header().Add("X-Content-Type-Options", "nosniff")
  
hunk.file_path: api/http/security/bouncer.go
hunk.type: add
file: angular.module('portainer.app')
  .factory('CodeMirrorService', function CodeMirrorService() {
    'use strict';
  
    var service = {};
  
    var codeMirrorGenericOptions = {
      lineNumbers: true
    };
  
    var codeMirrorYAMLOptions = {
      mode: 'text/x-yaml',
      gutters: ['CodeMirror-lint-markers'],
      lint: true
    };
  
    service.applyCodeMirrorOnElement = function(element, yamlLint, readOnly) {
      var options = angular.copy(codeMirrorGenericOptions);
  
      if (yamlLint) {
        _.assign(options, codeMirrorYAMLOptions);
      }
  
      if (readOnly) {
        options.readOnly = true;
      }
  
      var cm = CodeMirror.fromTextArea(element, options);
      cm.setSize('100%', 500);
      return cm;
    };
  
    return service;
  });
  