Load model from google drive folder or from external URL


Currently, I am facing one terrible thing.
Some models are uploaded on to Google Drive folder.
I want to load model from that folder.
But I have one error:
[ Access to XMLHttpRequest at ‘https://drive.google.com/file/d/1r1mOzciT8pxaGH5Q2kMsx/view?usp=sharing’ from origin ‘https://8739c64b.ngrok.io’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. ]

I used ngrok for https. And tried locally as well.

I can’t be sure if it’s the right way for loading models from external url.
I am opened to your recommendation as well.

Kindly, I am requesting to help me.

This is usually a web/content server setting. You have to ensure that CORS headers are correctly set in the HTTP response. AFAIK, Google Drive does not support CORS.

Cloud-based object storage services like AWS S3 or Google Cloud Storage usually allow a respective configuration. Same for web servers like http-server or apache.