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

184
Views
`<script>` tag loading error details with cross origin requests

In my react app, I am attaching a script tag to load a script resource dynamically from CDN. The host page domain is of course different than CDN domain.

My question is, in production, if my CDN response does not contain access-control-allow-origin header, and my <script> tag in DOM does not contain croossorigin, will errors generated by the CDN script resource be hidden by the browser and resulting only in Script error. message ?

And if so, will adding croossorigin to <script> tag and ensuring CDN responds with access-control-allow-origin: * header allow seeing the actual error that happen in the script (assuming I have onerror handler on the script element)

about 4 years ago · Juan Pablo Isaza
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!