To provide some background on my current endeavor, I am utilizing a Flex application to serve as a container for a web app. Within this Flex app resides a web controller that loads a complete Angularjs
application. All necessary files are stored locally within the Flex app.
However, when I attempt to run the application, it encounters difficulty loading the templates. These templates are loaded using the $routeProvider, and data is retrieved using the $http.get method.
The main issue at hand is the inability to fetch local files using JavaScript, despite running the application directly from the file system without a web server involved.
I have also tested the application on Chrome, encountering the exact same issue with the error message:
Origin null is not allowed by Access-Control-Allow-Origin.
In the case of Chrome, this issue can be resolved by utilizing --allow-file-access-from-files
, but I am unsure of how to achieve this functionality through the Flex/Flash web controller.
Any assistance offered on this matter would be highly appreciated.