Safari 5 Extension Xmlhttprequest Error: Invalid_state_err: Dom Exception 11
I am experimenting with the new Safari 5 extensions JS API and I am having an issue right from the ground up, I want to use an XMLHttpRequest to get an RSS feed from a website howe
Solution 1:
Make sure that in Extension Builder you have given your extension access to the site. Under the heading "Extension Website Access" set the access level to "all" or set it to "some" and provide "year3.gdnm.org" as an allowed domain pattern.
Solution 2:
I had the same problem, and the fix for me was to add:
http://\*/\*
https://\*/\*
to my whitelist. After that everything worked as expected.
Looks like there is bug because the documentation says that leaving the whitelist empty is equivalent to what I added.
Solution 3:
There may be an error in XML of page "http://year3.gdnm.org/feed/" and Safari couldn't parse this document, hence the error.
Post a Comment for "Safari 5 Extension Xmlhttprequest Error: Invalid_state_err: Dom Exception 11"