'use strict';

angular.module('ngGcHttpProviderConfig', [
  'gc.ngHttpGetParamInterceptor'
]).config([
  '$httpProvider',
  function($httpProvider) {

    var clientVersion = window.AppConfig && window.AppConfig.clientVersion;

    $httpProvider.defaults.headers.common.Accept = 'application/json';
    $httpProvider.defaults.headers.common['CLIENT-VERSION'] = clientVersion;

    $httpProvider.interceptors.push('httpGetParamInterceptor');
  }
]);

'use strict';

angular.module('ngGcHttpProviderConfig', [
  'gc.ngHttpGetParamInterceptor'
]).config([
  '$httpProvider',
  function($httpProvider) {

    var clientVersion = window.AppConfig && window.AppConfig.clientVersion;

    $httpProvider.defaults.headers.common.Accept = 'application/json';
    $httpProvider.defaults.headers.common['CLIENT-VERSION'] = clientVersion;
    $httpProvider.defaults.xsrfHeaderName = 'X-CSRF-Token';

    $httpProvider.interceptors.push('httpGetParamInterceptor');
  }
]);

Set the right header for rails
Set the right header for rails
