Local Machine: Dell Inspiron i5-7200 / 16 GB RAM /
Local Op Sys: Ubuntu 20.04LTS
Firefox version: 99.0
FFDE version: 100.0b5
Node.js version 14.18.1
npm version 6.14.… (læs mere)
Local Machine: Dell Inspiron i5-7200 / 16 GB RAM /
Local Op Sys: Ubuntu 20.04LTS
Firefox version: 99.0
FFDE version: 100.0b5
Node.js version 14.18.1
npm version 6.14.15
I had a Node.js web app running on my local machine all usual browsers like Firefox, Firefox Dev Ed (FFDE), Chromium, Edge, Opera, etc till recently.
Recently it shows an error when run on Firefox (also on Chromium, Opera and Edge) although continuing to run okay on FFDE.
Firefox Error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///home/sandbar/Desktop/nodeapp-local/undefined. (Reason: CORS request not http).
Edge Error: Access to XMLHttpRequest at 'file:///home/sandbar/Desktop/nodeapp-local/undefined' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, edge, https, chrome-untrusted.
Naturally, I need to test the web app on my local machine using several browsers before I should upload it to a server and trial it there.
So how do I configure the browser and/or app to allow access to local machine files ?