With cross-origin isolation, Unable to join a webinar via registration popup

Description
(1) Our server returns the following headers:

  • Cross-Origin-Embedder-Policy: require-corp
  • Cross-Origin-Opener-Policy: same-origin

(2) A guest tries to join a webinar from our website (with WebSDK)

(3) A registration popup ( Error - Zoom… ) opens.

(4) The guest fills required fields, and click ‘Join’ button.

Error
Nothing happens.

Which Web Client SDK version?
1.9.6 (not CDN)

Additional context
The popup window cannot run “postMessage” to communicate with main window.

Hey @kkai,

Thank you for reaching out to the Zoom Developer Forum. Please share any errors that you see in the browser console and I’ll use that to investigate further.

Thanks,
Max

@MaxM This is the error I saw.

Uncaught TypeError: Cannot read property 'postMessage' of null
    at s (register.min.js:1)
    at success (register.min.js:1)
    at success (all.min.js:29)
    at Object.success (all.min.js:29)
    at c (all.min.js:2)
    at Object.fireWith [as resolveWith] (all.min.js:2)
    at l (all.min.js:2)
    at XMLHttpRequest.<anonymous> (all.min.js:2)

Hey @kkai,

Thanks for clarifying, does this only happen when you use these headers:

Thanks,
Max

@MaxM Yes. No problem happens if our server doesn’t use the headers.

Hey @kkai,

Thanks for confirming. I’ve reached out to an internal resource to learn more about what’s going on here. I’ll let you know when hear back from them. (ZOOM-284920)

Thanks,
Max

1 Like

Hey @kkai,

Thank you for your patience. It looks like this happening because the implementation is missing a helper file that allows the registration flow to work between the two origins.

First, you can copy the content of this file:

and reference it in the init() function:

ZoomMtg.init({
      disableCORP: !window.crossOriginIsolated, // default true
      helper: './helper.html'
      });

Let me know if that helps.

Thanks,
Max

1 Like

@MaxM It solved by your solution!!! Thank you for your support.

1 Like

Awesome! I’m glad that helped. I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Max

1 Like