CSS/JS src without schema does not work with CSP

While I am loading JS/CSS with src="//localhost/something"

It cannot pass the CSP as following Content-Security-Policy: default-src 'self' localhost

It block the JS/CSS with warning Content Security Policy: The page’s settings blocked the loading of a resource at self ("default-src http://localhost http://localhost"). Source: @import url("//localhost/something"...

Is it possible to keep using src without schema to auto handle http/https when using CSP ?