I am trying to use the Ace code editor library (http://ace.ajax.org/), but im having trouble. According to the embedding guide, this should load the required js files from Amazo
I know this won't answer your question exactly but I'm writing this for people who land on this page and have the same problem where
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Credentials: "true"
or
editor.getSession().setUseWorker(false);
don't work.
I had the same issue on Chrome. I tested my site in Firefox and Opera and it worked as expected. I kept getting Uncaught RangeError: Maximum call stack size exceeded
errors when loading the page.
The solution was to empty Chrome's cache and it worked again. Even a control/command + shift + r
or control + F5
wouldn't work. I literally had to go into the settings and empty the cache.
Again, I know this only partially relevant but this is for other who land on this page!