Baffled on what the issue is here. I am trying to access a Lambda function on AWS through my Angular 2 application. Cross origin is enabled in AWS. In Chrome I am getting 200 responses in the Network tab.
The console however shows a 403
Here is the Angular code
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
getAWS(): Observable<any> {
return this.http.get('https://9rw0xrw730.execute-api.us-east-1.amazonaws.com/default/...', {
headers: {
'x-api-key': 'myapi key'
}
}
);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.