Revision 6cce0301
Added by koszko over 1 year ago
content/haketilo_apis.js | ||
---|---|---|
48 | 48 |
async function on_CORS_bypass(event) { |
49 | 49 |
const name = "haketilo_CORS_bypass"; |
50 | 50 |
|
51 |
console.warn("delme event", event.detail);
|
|
52 |
|
|
53 |
if (typeof event.detail.id !== "string" ||
|
|
51 |
if (typeof event.detail !== "object" ||
|
|
52 |
event.detail === null || |
|
53 |
typeof event.detail.id !== "string" ||
|
|
54 | 54 |
typeof event.detail.data !== "string") { |
55 | 55 |
console.error(`Haketilo: Invalid detail for ${name}:`, |
56 | 56 |
event.detail); |
Also available in: Unified diff
add more tests for CORS bypassing feature