Uploaded December 2020 | Updated September 2026, 3 weeks ago
If you are getting a CORS (cross origin request) error when trying to display a localhost webpage there may be an easy way to fix it if you are using Visual Studio Code. Seeing an error similar to this? "Access 'file:///' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https". This video may be able to help if you are using Visual Studio Code.
Sign up for email notifications (signup.opensourceoptions.com/subscribe) and get $5 off any course at opensourceoptions.com/courses
Visit opensourceoptions.com for more content and courses
If you are getting a CORS (cross origin request) error when trying to display a localhost webpage there may be an easy way to fix it if you are using Visual Studio Code. Seeing an error similar to this? "Access 'file:///' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https". This video may be able to help if you are using Visual Studio Code.
Sign up for email notifications (signup.opensourceoptions.com/subscribe) and get $5 off any course at opensourceoptions.com/courses
Visit opensourceoptions.com for more content and courses







