Skip to content
Snippets Groups Projects

Issue #3338518: send credentials in ajax if configured in CORS settings.

Closed Kris Booghmans requested to merge issue/drupal-3338518:3338518-cors-ajax-101 into 11.x
2 files
+ 5
1
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 3307cfb8
    Issue #3400485 by googletorp, nod_:... · 3307cfb8
    Jess authored
    Issue #3400485 by googletorp, nod_: LibraryDependencyResolver::getMinimalRepresentativeSubset() calculates dependencies incorrectly
    
    (cherry picked from commit c0895d57)
@@ -86,7 +86,7 @@ public function getMinimalRepresentativeSubset(array $libraries) {
foreach ($libraries as $library) {
$with_deps = $this->getLibrariesWithDependencies([$library]);
// We don't need library itself listed in the dependencies.
$all_dependencies += array_diff($with_deps, [$library]);
$all_dependencies = array_unique(array_merge($all_dependencies, array_diff($with_deps, [$library])));
}
return array_values(array_diff($libraries, array_intersect($all_dependencies, $libraries)));
Loading