Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
Incorrect MIME type when hosting on Google Drive

I've found some answers on here of people hosting JS files on Google Drive but am running into an issue. I am attempting to grab a JS file I have hosted on Google Drive and run the script. But I am getting the error:

Read Blocking (CORB) blocked cross-origin response https://drive.google.com/uc?export=download&id=1WzzhFnPpDyfybrp-QG4xQf2WFLOTpLDL with MIME type text/html.`

This is how I am trying to call the script:

<script type="text/javascript" src="https://drive.google.com/uc?export=download&id=1WzzhFnPpDyfybrp-QG4xQf2WFLOTpLDL"></script>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

When I saw your script and URL, I'm worried that when the file is exported using your endpoint, the virus check might be affected. So, in this case, how about directly downloading your file using an API key?

When your endpoint is modified, it becomes as follows.

From

<script type="text/javascript" src="https://drive.google.com/uc?export=download&id=1WzzhFnPpDyfybrp-QG4xQf2WFLOTpLDL"></script>

To

<script type="text/javascript" src="https://www.googleapis.com/drive/v3/files/1WzzhFnPpDyfybrp-QG4xQf2WFLOTpLDL?alt=media&key=###your API key###"></script>
  • When I tested this modified endpoint, no error occurs.

Reference:

  • Using API keys
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!