Important bug fix for posting form data. The headers are case sensitive. Changed them all to Content-Type.

This commit is contained in:
Scott Idem
2025-05-19 17:01:13 -04:00
parent f88e6cef89
commit f2059da9d1
6 changed files with 38 additions and 12 deletions

View File

@@ -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;