All worked as expected but when I updated to spring boot 2 and added --> se

All worked as expected but when I updated to spring boot 2 and added → server.servlet.session.cookie.secure: true
the files are not rendered because its MIME type (‘application/json’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. Do you know any workaround?