Я пытаюсь указать путь к локальному серверу в проекте Angular. Но я получаю следующее сообщение об ошибке: Не разрешено загружать локальный ресурс: file: /// C: / Users / YYY / Desktop / XXX
Ниже приведен мой компонент. html file
<html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script> </head> <body> <input class="in" type="text" (keyup)="onKeyUp($event)"> <button class="btn" (click)="getResults()">Search Request</button> <br> <div class="container"> <table class="table" *ngIf="_items"> <thead> <tr> <th class="user_request_id">Request ID</th> <th class="asset_name">Asset Name</th> <th class="generated_path">Generated Path</th> <th class="match_percentage">Match Percentage</th> </tr> </thead> <tbody *ngIf="_items.items.length!=0"> <tr *ngFor="let item of _items.items"> <td>{{item.user_request_id}}</td> <td>{{item.asset_name}}</td> <td><a href="C:\Users\YYY\Desktop\XXX">{{item.generated_path}}</a></td> <td>{{item.match_percentage}}</td> </tr> </tbody> </table> </div> </body> </html>