on 01-23-2020 9:17 PM
Hi Experts,
I am trying to get the Google Places AutoComplete API to my SAP UI5 Application.But when i am trying to set the URL in SAP Cloud Platform Cockpit Destination to avoid CORS issue.
Its is not giving any search suggestions . I exactly followed this awesome blog( https://blogs.sap.com/2017/09/06/google-api-autocomplete-with-sapui5/ ) to do this but when it comes to setting a destination particularly for a Google API it is causing the issue.
{
"path": "/Google",
"target": {
"type": "destination",
"name": "Google"
},
"description": "Api Information"
}
Is there any other approach to fetch the Google API's . I am so confused here since other destinations which i set works but not one API.
Note: Adding Destinations is the recommended approach by SAP to go with in dealing with CORS 😞
Thanks,
Abhinay Dogiparthi
I am so stupid to answer my dumb question but it may actually help someone.
First the entire process is right but the URL i am trying to add in Cloud Cockpit is wrong .
The actual URL to be added and to be appended in controller of our app is this
https://cors-anywhere.herokuapp.com
{
"path": "/Google",
"target": {
"type": "destination",
"name": "Google"
},
"description": "Api Information"
}
Thanks,
Abhinay Dogiparthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.