0

I have called third party API using Jquery AJAX. I am getting following error in console

Cross-Origin Read Blocking (CORB) blocked cross-origin response https://example.com/assets/front/font/fonts.min.css with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.

georgeawg
  • 48,608
  • 13
  • 72
  • 95
  • Possible duplicate of [Why does my JavaScript get a "No 'Access-Control-Allow-Origin' header is present on the requested resource" error when Postman does not?](https://stackoverflow.com/questions/20035101/why-does-my-javascript-get-a-no-access-control-allow-origin-header-is-present) – Taplar Mar 07 '19 at 17:15
  • The question is about CORB, not CORS – Maximiliano Sosa Apr 25 '19 at 21:04

1 Answers1

0

add to your code PHP

header("Access-Control-Allow-Origin: *");

make sure to place it on top declaration of the header