Filepicker.io SecurityError - javascript

I took the demo on github, and ran it on my local server. I can pull up the upload dialog and select a photo, but it keeps throwing a javascript error when i choose upload:
Uncaught Error: SecurityError: DOM Exception 18
Which then freezes the page at a spinning uploading screen. My API key has been entered as well. Any suggestions to get this working would be appreciated.

According to what seems to be the canonical Stack Overflow issue on this topic (Uncaught Error: SECURITY_ERR: DOM Exception 18 when I try to set a cookie), it likely has to do with the fact that the window.history.pushState call that the dialog makes is not happy when run via localhost directly.

Related

chrome.devtools.panels.create is undefined

I'm trying to create a Chrome extension and want to in different ways interact with the devtools. To create a foundation I decided to follow this guide, however it doesn't seem to be working at all. The errors arrive from this piece of code:
chrome.devtools.panels.create(
"My Panel",
"/icons/star.png",
"/devtools/panel/panel.html"
).then((newPanel) => {
newPanel.onShown.addListener(handleShown);
newPanel.onHidden.addListener(handleHidden);
});
The errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'then')
Ignoring unauthorized client request from null
A panel is successfully created however when trying to view it just says "It may have been moved, edited or deleted". If instead of doing then add a callback function. The TypeError is removed, but the Ignoring unauthorized client request persists.
This is my first time working with Chrome extensions or anything with devtools API, however I have not been able to find any sufficient help online.

Getting 'Uncaught TypeError: Cannot set property 'timestamp' of undefined' when using jQuery

I have an error which appear when I import jQuery lib only. I don't know what I can do. I know that it's coming from the file jquery.min.js.
Here is my simple page causing this error :
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
What I get from my console :
This error has nothing to do with jQuery or its CDN.
From the error log, you can see that the error originates from webspeed.js. Since you precise that you only import the jQuery script, this shows that this error originates from an extension.
The script tries to contact speedtest.net and the request gets blocked by CORB, thus throwing an uncaught error. This also gives a hint that the extension is made likely to be offered by speedtest.net or a related corporation. As #alon-eitan found, this is indeed the case: the speedtest extension includes such a script that has been known for triggering similar errors.
Pausing the extension or configuring it not to run on your website is likely to fix the error. I'd recommend removing it completely, as network speed analysis and much more can already be natively performed by Chrome thanks to Lighthouse.

Resolving Unexpected token < in Chrome for Custom 403 Page

I saw some previous topics related to this but was unable to find a related solution.
On my WordPress blog, WeLearnChess.com, I created a custom 403 error page, and now I am getting a seemingly related syntax error in Chrome. I enabled script debugging in the wp config file and checked with developer tools in Chrome, and I get this error:
Uncaught SyntaxError: Unexpected token < inaccessible:1
This appears to refer to my custom 403 page (http://www.welearnchess.com/inaccessible/). I have BulletProof Security Pro installed, so, to create the custom 403, I replaced the default 403 code with the following line of code via the BPS custom code field:
ErrorDocument 403 http://www.welearnchess.com/inaccessible/
From various tutorials that I saw online, this seems like it should be correct, but I'm new to this so perhaps I've made a mistake that is causing the error. Another interesting point is that, after a hard browser refresh, sometimes the syntax error temporarily changes from :inaccessible to :index or maybe it was:index1 (I'm having trouble reproducing it now).
So, have I done something incorrect with my 403 custom code that could be causing the aforementioned error? Thanks in advance for any assistance you can provide, and please let me know if I need to clarify the question further.
You plugin directory is throwing a 403 error, which means when including <script> tags with src like http://www.welearnchess.com/wp-content/plugins/ultimate-social-deux/public/assets/js/min/us.script-min.js?ver=6.0.4 get redirected to your custom 403 page which is http://www.welearnchess.com/inaccessible/. There are a few instances of this for plugins: ultimate-social-deux, zf-wordpress-category-accordian, rain - where their assets that should be publicly accessible are 403ing. Which means, instead of the actual script your custom page is loaded in the script tag, which is as expected, is invalid JavaScript and hence the errors in your console.

Browser: Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL

I just got this error on a on desktop only website which uses an IDE to render the page. It works on FireFox some, but the controls necessary to generate all of the JavaScript is not there as in Chrome. Perhaps I could add a cross compatibility line but I do not know what. The reason why is this strange error I never have had before on the debugger...
Please help with resolution.
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/J/Desktop/Rain_Watch%20Webpage/default.html' cannot be created in a document with origin 'null'.
jquery.min.js:2 Uncaught Error: jHERE already initialized, expected method.
just tried something similar and I got the same error with Chrome. when I run the code from a webserver works fine.
create a dir in webapps in tomact
put web-inf from root in project dir
create a startup file which start page of your project
http://localhost:8080//index.jsp
I am also getting the same error while testing my project on Google Chrome. But it is working on Firefox, Opera and Safari on Mac.
If anyone is encountering the same issue, test your project on other broswers.
You can find this issue discussed on ChromeReleases Blog.

What does Permission denied to access object in Firebug's console (Firebug is a FF addon) using Firefox 17 (latest) version?

just wondering if someone have found seeing the following error in the firebug console, or any idea of what could it mean??
Does this has to do with a browser thing when having the same page opened in two tabs or something??
Have you fixed a similar problem??
What would be a way of ensuring this error is not thrown, is annoying to me :(
Would it have to be with the fact that the site requires cookies, javascript or any considerations you could suggest??
Error: Permission denied to access object
Error: Permission denied to access object
Error:
Error: Permission denied to access object
Error: Permission denied to access object
Error:
Reproducibility:
(6 errors in the console listed when loading a page in two tabs with FF)
Haven't tried other browsers.. This error appears to be unobtrusive, it does not stop any code from continuing, but I would love to get rid of it, or prevent it.. Thanks in advance for the help!! Much appreciated
Edit:
And now I get a new one, which might be the cause of the problem :(
Error in Protected Function !281
In addition:
#Pointy:
- yeah, Tested on FF 18. You are absolutely correct on that statement by the way ;) Thanks for the sanity check :)

Categories

Resources