Browse Source

SONAR-8237 Web UI is not working correctly on Edge

tags/6.2-RC1
Stas Vilchik 7 years ago
parent
commit
03924a6268
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      server/sonar-web/src/main/js/helpers/request.js

+ 4
- 1
server/sonar-web/src/main/js/helpers/request.js View File

@@ -38,7 +38,10 @@ export function getCSRFTokenValue () {
* @returns {Object}
*/
export function getCSRFToken () {
return { [getCSRFTokenName()]: getCSRFTokenValue() };
// Fetch API in Edge doesn't work with empty header,
// so we ensure non-empty value
const value = getCSRFTokenValue();
return value ? { [getCSRFTokenName()]: value } : {};
}

/**

Loading…
Cancel
Save