We need to return the URL as a header in AJAX request for logging
Bug #745486 reported by
Huw Wilkins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
High
|
Unassigned |
Bug Description
As part of an AJAX log of times we would like to include the URL. It seems the only way to get this URL is to return it as a x-header.
Can we add a new header? Something like: X-LP-URL
I think we should return this on all AJAX requests. Lifeless helpfully adds: "api requests on non api domains are ajax requests" if that helps in determining when to add this header.
Changed in launchpad: | |
assignee: | William Grant (wgrant) → nobody |
tags: | added: easy |
To post a comment you must log in.
Independent of the request for a new header here, I'm confused a bit. You want to log AJAX requests but don't know the URL being requested? How can you make a XHR without a URL?
Perhaps you could explain more about what you're trying to do and what you don't have access to the URL, just in case there's some way to get the URL that isn't obvious. My apologies if you've been over this with others and already covered this ground.