unicef / kindly

GNU Affero General Public License v3.0
24 stars 17 forks source link

BUG: removed unchecked blocking condition #47

Closed nathanfletcher closed 2 years ago

nathanfletcher commented 2 years ago

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.