(obj: any, key: string)
| 112 | } |
| 113 | |
| 114 | function getValue(obj: any, key: string): string | undefined { |
| 115 | const lowerCaseKey = key.toLowerCase(); |
| 116 | |
| 117 | for (const key of Object.keys(obj)) { |
| 118 | if (key.toLowerCase() === lowerCaseKey) { |
| 119 | return obj[key]; |
| 120 | } |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | // Disable CORS and handle cookies |
| 125 |