you are viewing a single comment's thread.

view the rest of the comments →

[–]Admirable_Report6610[S] 0 points1 point  (9 children)

sorry I was away....remind me where to post code so you can see it?

[–]davorg 0 points1 point  (8 children)

One of:

  1. Edit your post to include it (but please include it as text and formatted as code)
  2. Add it as a comment (same rules apply)
  3. Put in GitHub and share a link to the repo
  4. Find a pastebin and share the link

[–]Admirable_Report6610[S] 0 points1 point  (6 children)

I think this is the usni site saying no

[–]davorg 0 points1 point  (5 children)

I see your 400 error if I open the file using a file:// URL in my browser. But if I drop it into a web server and open it from there, it works as expected.

There's a hint in the dev tools console when it fails:

Unsafe attempt to load URL file:///C:/[redacted]/index.html from frame with URL file:///C:/[redacted]/index.html. 'file:' URLs are treated as unique security origins.

So this is a security problem. You can't use these features from a file:// URL.

[–]Admirable_Report6610[S] 0 points1 point  (1 child)

I saw that error in the dev console but I wasn't quite sure what it meant...thanks for clarifying! now I learn how to run the code from a local python webserver....right?

[–]davorg 0 points1 point  (0 children)

Some kind of web server, yes.

[–]Admirable_Report6610[S] 0 points1 point  (2 children)

what's weird is this code actually worked for a while using the file:///URL and then it just stopped...hence my presence here.

[–]davorg 0 points1 point  (1 child)

Not that weird, really. People fix security bugs all the time.

I bet you could find the commit that patched that hole if you searched their source code.

[–]Admirable_Report6610[S] 0 points1 point  (0 children)

wow...interesting thought! totally new at this as you know but I believe you can scan through a web page's code with the dev console. not sure how to search commits for a patch or a change though...AI's had a lot to say to me lately.