mprimi / portable-secret

Better privacy without special software

Home Page:https://mprimi.github.io/portable-secret/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creator fails on Chrome for CORS policy

MaggieLeber opened this issue · comments

Access to fetch at 'file:///D:/Users/maggie/Google%20Drive/portable-secret/creator/secret-template.html' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

You will need to host the Creator on a websever or include the two template files within the index.html like this:
indexNoWebserverReq.zip

i just converted secret-template.html and values.js to base64 and inserted it on line 219 and 220 and commented out the old ones above

image

The README in the creator folder explains you need to run an HTTPS server locally for the creator (secrets don't require a server to extract).

@Unkn0wnCreator method also works. I didn't take this route because this is harder for people to grok. But the actual creator I use for personal use embeds the strings in a similar way.

Ah... Didn't get that the creator won't run standalone. Makes sense.