Should we use a version of the following as the default config for CTHTTPRequest in request.js?
(At least during development when running the frontend on a different server)
const defaultconfig = {
headers: {
"Access-Control-Allow-Origin": "*", // or something more limited?
"Access-Control-Allow-Methods": "GET,PUT,POST,DELETE,PATCH,OPTIONS"
}
};
"Access-Control-Allow-Methods" is already used in several places in the frontend code.
Should we use a version of the following as the default config for CTHTTPRequest in request.js? (At least during development when running the frontend on a different server)
"Access-Control-Allow-Methods" is already used in several places in the frontend code.