Skip to content

Commit

Permalink
Merge pull request #3323 from sap-labs-france/fixCarsImagesDisplay
Browse files Browse the repository at this point in the history
hotfix - fix car images - cross origin issues
  • Loading branch information
Claude ROSSI committed Aug 3, 2022
1 parent 6aecd16 commit 5a78c0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/cars/car-catalog/car-catalog.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="row">
<div class="col-md-5">
<div class="card card-background mt-0 mb-0">
<img class="front front-background" alt=""
<img class="front front-background" alt="" crossorigin="anonymous"
[ngStyle]="{'background-size' : 'contain', 'background-repeat': 'no-repeat'}"
[src]="carCatalog.image" onerror="this.src='/assets/img/theme/no-image.png';">
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/cars/car/main/car-main.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="row w-100">
<div class="col-md-12 col-xl-5 d-block">
<div class="card card-background mt-0 mb-0">
<img class="front front-background" alt=""
<img class="front front-background" alt="" crossorigin="anonymous"
[ngStyle]="{'background-size' : 'contain', 'background-repeat': 'no-repeat'}"
[src]="carCatalogImage" onerror="this.src='/assets/img/theme/no-image.png';">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Car, CarCatalog } from '../../../types/Car';
@Component({
template: `
<div class="logo-container">
<img class="app-car-image"
<img class="app-car-image" crossorigin="anonymous"
[src]="row['carCatalog'] ? row['carCatalog']['image'] : row['image']" alt=""
onerror="this.src='/assets/img/theme/no-image.png';">
</div>
Expand Down

0 comments on commit 5a78c0d

Please sign in to comment.