Something, chrome will restrict from displaying videos from third-party links because of the web security.
Although you can remove restriction from your video hosting provider by adding your actual production domains, you still can't test these videos in your localhost. So How to fix it?
Step 01 - Add localhost as allowed domain inside the dashboard of your video hosting provider
Step 02 - Create a new chrome shortcut and rightClick > Properties section to change the shortcut properties
Step 03 - Add the following to the target field of the shortcut section
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp and click Apply
Note : Always run that created shortcut as administrator and now you will be able to bypass CORS restriction for testing.
No comments:
Post a Comment