[SOLVED] Access to Script From Origin 'null' Has Been Blocked By CORS Policy

preview_player
Показать описание
Access to image at '*' 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.

how to solve this ?
Your files need to be served with http or https protocol,
it's easy these days, with NodeJS and Express for example.
You'll then be able to access your files using localhost

Just change your file path to http link
Рекомендации по теме
Комментарии
Автор

hello, excellent... can you send me the code because the video looks blurry. THANK YOU

andbere