Hello,
Your OSX security and Privacy setting need to be adjusted to allow screen sharing. You don’t say what browser you are using. In the following set of instructions you can substitute Google Chrome with another browser if needed.
1. Go to the Apple icon in the top left corner of your screen.
2. Select System Preferences.
3. Select Security & Privacy.
4. Click the lock icon at the bottom to make changes.
5. Enter your password to unlock.
6. Find the Screen Recording option under the Privacy tab of this menu.
7. If you do not see Google Chrome in the screen recording section, click the plus icon.
8. Select Google Chrome from your applications folder, and then click Open.
9. If Google Chrome is already checked, uncheck and then recheck the box.
10. If Google Chrome is not already checked, check the box.
11. Quit and relaunch the browser.
12. Click the lock icon to prevent further changes.
Note: You must restart Google Chrome for these changes to take.
Regards
If my reply helped, don't forget to click the accept as solution button!