I am using bootstrap 4.3.x. I want to include CSS using localpath but the CSS is not getting applied if I do so. below is the localpath.
I have tried placing the following source URL to include bootstrap.min.css which does not work
link href="css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"
Where as when I use the below CDN path, it works.
link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"
including localpath should show proper elements in index.file. as of now, it shows scattered elements. I checked the browser console, and I am getting the below errors
- Access to CSS stylesheet at 'file:///C:/xampp/htdocs/resumo/css/bootstrap.min.css' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
2 . Failed to load resource: net::ERR_FAILED
http://localhost:<port if provided any>/<folder under xampp>/<filename>.html