EnableCORS() - in AsyncWebServer

It apopears this function is not available in the AsyncWebServer library.

Does anyone know the best way to

Access-Control-Allow-Origin: *

-I have issues with a CDN and the ability to download fonts.

Thanks

I added this line in my part of the html page

<meta http-equiv="Access-Control-Allow-Origin" content="*"/>

I also added

DefaultHeaders::Instance().addHeader("Access-Control-Allow-Origin", "*");

before my first server.on() routine in the asyncwebserver responses area on the server

The errors seem to have gone away.

Not sure if that is what is required, but willing to take suggestions if there is anything incomplete or wrong.

Thanks