Retrieve URL from which an API Request is made in Django -
i have problem: developing api view in django must respond remote requests.
is there way know url api call starts?
thank
yes, in http headers, there referer line, uri client came, if choose send it. people choose things isn't sent, , in case, there isn't can it.
there several posts parsing http headers floating around, can use 1 of , borrow methods.
this 1 of posts has several examples in it: parse raw http headers
you need make django snag headers can parse them, isn't difficult do, believe there functions in standard library getting headers in web apps.
Comments
Post a Comment