Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #10697
| Date | 2012-01-29 07:31 +0100 |
|---|---|
| From | Stefan Weiss <krewecherl@gmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: HTTPS Relative XMLHttpRequest |
| References | <87d20$4f246a58$cf9b4ad3$21106@ALLTEL.NET> <1364299.WGnKmheAe9@PointedEars.de> |
| Message-ID | <5JGdnZ4wwtMsernSnZ2dnUVZ7vSdnZ2d@giganews.com> (permalink) |
On 2012-01-29 00:32, Thomas 'PointedEars' Lahn wrote: > MC wrote: > >> I have searched and found references by pointy-ears and Cornfed […] > > Please do not feed the troll (adjust your score-/killfile instead). A troll, you say? Would that be the person who asked a legitimate JS related question, or the one who tried to divert replies to alt.my.little.pony? I'm sure most readers of this group are able to make their own decisions about how to score posters. We generally don't feel the need to announce every filter adjustment in our postings, however. Back on topic... @OP: Yes, it is possible to use relative URLs in the XHR's open() method. The URL will be resolved relative to the base URL of the current document/window (see the XHR specification(s) for details). If the current URL uses the "https" scheme, you should be fine. If the scheme, domain, or port parts of the URL you want to request differ from the current base URL, you're going to run into problems with the browsers' same origin policy. But in that case, there's not much point in using relative URLs, anyway. There may be ways to relax this restriction, but I'd need to know more about your use case before I can recommend one. Please also describe what you have already tried and what did/didn't work for you. > F'up2 where it belongs Duly ignored. - stefan
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
HTTPS Relative XMLHttpRequest MC <news@aisus.com> - 2012-01-28 15:37 -0600
Re: HTTPS Relative XMLHttpRequest Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-29 00:32 +0100
Re: HTTPS Relative XMLHttpRequest Stefan Weiss <krewecherl@gmail.com> - 2012-01-29 07:31 +0100
Re: HTTPS Relative XMLHttpRequest Tim Streater <timstreater@greenbee.net> - 2012-01-29 10:58 +0000
Re: HTTPS Relative XMLHttpRequest MC <news@aisus.com> - 2012-01-29 21:02 -0600
Re: HTTPS Relative XMLHttpRequest Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-01-29 14:57 +0100
Re: HTTPS Relative XMLHttpRequest MC <news@aisus.com> - 2012-01-29 21:00 -0600
Re: HTTPS Relative XMLHttpRequest Stefan Weiss <krewecherl@gmail.com> - 2012-02-01 13:34 +0100
Re: HTTPS Relative XMLHttpRequest MC <news@aisus.com> - 2012-02-02 08:55 -0600
Re: HTTPS Relative XMLHttpRequest MC <news@aisus.com> - 2012-01-30 08:01 -0600
Re: HTTPS Relative XMLHttpRequest Scott Sauyet <scott.sauyet@gmail.com> - 2012-01-31 04:03 -0800
csiph-web