The Geocongress app contains a proxy like:
I have a similar use case where my proxies will fetch data from a specific url and I also need to send an API key.
extend : 'Ext.data.Store',
// The following must be set to disable extra parameters being sent to the API, which breaks it
Instead of hardcoding the API key and server address for each proxy i want to store this information somewhere and automatically use it for all proxies.
I wonder what the best practices are for this, and maybe somebody knows an example.
After that I want to extend this and retrieve the server hostname and API key from the local storage.
This makes it possible to connect to e.g. a preprod server and use different API key per customer.