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

Popular posts from this blog

java - Cast from Object to List<String>: CastClassException -

How to set a border for android Imageview in Longpress? -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -