pan-unit42 / playbook_viewer

MIT License
168 stars 43 forks source link

CORS protection blocks loading the resources on localhost #16

Open Jiri-Stary opened 3 years ago

Jiri-Stary commented 3 years ago

Issue:

When opening the playbook on localhost without a server, CORS policy of browser blocks loading of the resources. The message from the browser:

_Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///C:/Repositories/playbookviewer-master/consts.json. (Reason: CORS request not http).

Workaround:

Run browser with disabled CORS protection - it works .\chrome.exe --allow-file-access-from-files

Then the playbook works normally