Hello and thank you for your support.
I made the changes taking care to copy your method but it doesn't work either.
Also, I tested with your files and it doesn't work either. It's written the same thing in the console. Something like :
Access to XMLHttpRequest at 'file:///C:/Users/r.rousselle/Documents/NetBeansProjects/Agenda/public_html/api/products.json' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
Here are my files attached