title: Sending AJAX request without querystring parameters as 'referrer'
body: <p>I'm trying to communicate to Google Calendar API.
  The API only accepts requests from a specific referrer, e.g.: www.mysite.com/calendar/events.asp</p>
  
  <p>But sometimes the URL includes querystring parameters, e.g.:
  www.mysite.com/calendar/events.asp?message=eventAddedSuccessfully&amp;id=50</p>
  
  <p>The API rejects requests from the above URL, and returns this message: 
  "The referrer www.mysite.com/calendar/events.asp?message=eventAddedSuccessfully&amp;id=50 does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions."</p>
  
  <p>How can I send an AJAX request with only the path in the URL as the referrer?</p>
  
  <p>Thanks</p>