The default behaviour of the checkHeaders function was to block everything.
However, in a situation where all conditions are satisfied, the default behavior to block would be enacted.
This is because of the negated conditions of the if-elif block in checkHeaders
Also, the deployed API URL was not included in the allowed origins.
The default behaviour of the
checkHeaders
function was to block everything. However, in a situation where all conditions are satisfied, the default behavior to block would be enacted. This is because of the negated conditions of theif-elif
block incheckHeaders
Also, the deployed API URL was not included in the allowed origins.