Is it possible to add Wild cards in the remote site settings for HTTP Callouts. For example I have a web service called foo.com. My customers have accounts on my service as customer1.foo.com , customer2.foo.com, etc. Can I have my app whitelist a domain such as *.foo.com. So that any customer can make callout to their account by specifying their account url.
ANy help will be appreciated.
Thank you
Abhinav
Attribution to: Abhinav Arora
Possible Suggestion/Solution #1
I'm afraid you can't do that. Your clients will have to set the Remote Site Setting theirselves.
Also see this similar discussion: Dynamically set remote site Setting in Apex
Attribution to: Guy Clairbois
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/30421