Task #3660
Remove duplication of code with set_headers function
Status:
New
Priority:
Normal
Assignee:
-
Start date:
07/13/2024
Due date:
% Done:
0%
Estimated time:
Description
Every "gcf" has the following code.
headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Origin': get_allowed_origin(),
'Access-Control-Allow-Methods': 'POST',
'Access-Control-Allow-Headers': 'Content-Type',
'Content-Type': 'application/json'
}
create a set_headers method and replace above in every "gcf" with one line of code
No data to display