Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tslib/react/src/hooks/useEvalTrialFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ export const useEvalTrialFilter = <T extends Trial>(): [
const renderIframeSandbox = () => {
const iframeSrcDoc = `
<script>
// Disable network access in the iframe for security reasons
window.fetch = () => { throw new Error("Unexpected") }
window.XMLHttpRequest = () => { throw new Error("Unexpected") }

window.addEventListener('message', (event) => {
const { data } = event;
if (typeof data !== 'object' || data.type !== 'filter') return;
Expand Down