@onecx/angular-accelerator 4.20.1 → 4.20.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,7 +151,7 @@ class SrcDirective {
151
151
  set ocxSrc(value) {
152
152
  if (value && this._src !== value) {
153
153
  try {
154
- if (new URL(value, window.location.origin).origin === window.location.origin) {
154
+ if (new URL(value, window.location.origin).hostname === window.location.hostname) {
155
155
  this.httpClient.get(value, { responseType: 'blob' }).subscribe({
156
156
  next: (blob) => {
157
157
  const url = URL.createObjectURL(blob);