Disable Cross-Origin Read Blocking (CORB) in brave browser

Viewed 1552

I am serving static content (html, css and js) using lighttpd. I want to call api from a server hosted on the localhost using a wsgi application with python. I am getting the following error when I am trying to call the api from frontend (using ajax with jquery library). error screenshot

I am accessing the site via brave browser. For testing purpose how can I disable this "Cross-Origin Read Blocking (CORB) blocked cross-origin response" feature?

1 Answers

You can prevent MIME sniffing by setting the response header option X-Content-Type-Options to nosniff. For lighttpd the syntax is:

setenv.add-response-header = ("X-Content-Type-Options" => "nosniff",)
Related