Subdomains & Cross-site scripting?
- Redpost
- Posts: 4
- Starts: 4
- Wiki Edits: 0
- Location: Goshen, Ind.
Hi, we're planning on having a rails app hosted on your server that will use subdomains to key the accounts within the app and a static website that will live in the 'www' subdomain. Would it cause a cross-site scripting error if we had pages from the www area send ajax calls to the app? In other words, will the different sub-domains cause a cross-site scripting error that will prevent the AJAX call from being sent?
- William
- Posts: 1061
- Starts: 32
- Wiki Edits: 56
Hi there - I believe as long as you make those AJAX calls with the full URL you'll be fine. You'll probably need to pull out the ajax updater javascript code and enter this manually.
2008-01-22 01:01 PM
- Redpost
- Posts: 4
- Starts: 4
- Wiki Edits: 0
- Location: Goshen, Ind.
Great, I've already coded the AJAX calls separately so that's good news. Thanks