Question from the API Platform test

What are CORS(Cross Origin Request Sharing) headers used for?