Important bug fix for posting form data. The headers are case sensitive. Changed them all to Content-Type.
This commit is contained in:
@@ -306,7 +306,7 @@ async function get_url_cfg(cfg) {
|
||||
|
||||
// axios.defaults.baseURL = `${cfg.api_protocol}://${cfg.api_server}:${cfg.api_port}/${cfg.api_path}`;
|
||||
axios_api.defaults.headers.common['Access-Control-Allow-Origin'] = cfg.access_control_allow_origin; // '*'; // app_cfg.access_control_allow_origin;
|
||||
axios_api.defaults.headers.common['content-type'] = 'application/json';
|
||||
axios_api.defaults.headers.common['Content-Type'] = 'application/json';
|
||||
axios_api.defaults.headers.common['x-aether-api-key'] = cfg.api_secret_key;
|
||||
// axios_api.defaults.headers.common['x-account-id'] = cfg.account_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user