i’m getting invalid url -must be Https error in my app.js while make get request to fresh desk.
i added whilisted domain in my manifest.json file and i using template literal to place domain name and api key.
Hello @Kithiyon ,
From the information that you have shared, it seems like the iparam key domain is set incorrectly. Can you check .fdk/localstorage in your project and confirm if you have the right domain name with https.
Eg: https://<domain>.freshdesk.com. Another suggestion would be to add a regex validation in your domain input element to ensure that no invalid domain can be saved. You can use the validate function for this.
Hi @Kithiyon,
I tried reproducing this and found that you are storing the installation params in secure format which does’nt allow us to access them from the client. This is why I believe hardcoding the value worked for you. We can store the domain iparam without secured format and then this should work as expected.
Inside the postConfig function you can change it to
return {
__meta: {
secure: ["api_key"], // Removed the domain here
},
api_key,
domain,
Credentials,
};