Project

General

Profile

Task #3660

Remove duplication of code with set_headers function

Added by Ram Kordale 5 months ago.

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

Also available in: Atom PDF