I'm working on an embedded VF page single page app and attempting to setup routes using ui.router ($stateProvider). I would like to break apart my views into inline templates but place them outside of the controllers. I keep running into an issue where when attempting to inject a template via the route I encounter a CORS error. For some strange reason, Salesforce appears to be prefixing a "c." in front of the base domain.
I would love some advice on how to setup an SPA with inline templates since packaging them in a zip archive is sort of overkill for this project. I'm also note sure how this would circumvent this CORS isssue.