Skip to content
Snippets Groups Projects

Issue #3001809: CORS breaks with cache proxies and same origin usage.

Open Kunal Sachdev requested to merge issue/drupal-3001809:3001809-cors-breaks-with into 11.x
2 files
+ 29
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -201,6 +201,10 @@ public function onRespond(ResponseEvent $event) {
// header declaring the response as not cacheable.
$this->setResponseNotCacheable($response, $request);
}
// Always vary by the 'Origin' response header until the asm89/stack-cors
// library is fixed.
$response->setVary(array_merge($response->getVary(), ['Origin']));
}
/**
Loading