Commit 20aecfc
committed
fix: use fetch transport for OTEL exporter instead of sendBeacon
sendBeacon can't perform CORS preflights, so cross-origin POSTs with
Content-Type: application/json fail silently in Firefox (status null).
Passing headers: {} triggers the SDK to select the fetch transport.1 parent 66c2076 commit 20aecfc
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments