Do you see what you're doing here? You're not opening a local file,
you're asking a web server for a file. So either you need to put this
file in the public folder of your project (so the web server can find
it), configure your web server so it can find the file elsewhere, or,
if you really want the file to remain local, change the url to a local
path ("file:<full path>"). But unless this is for personal use only, I
don't think that's what you're looking for.
Then again, if this is not for personal use, you might want to learn
a bit more about web servers first.