Answer the question
In order to leave comments, you need to log in
Is it possible to determine if a request originated from an iframe or not in Django?
There is an application that runs on a separate domain and there is a third party application that needs to be able to access some pages of the application. Access is granted via @xframe_options_exempt. For normal display, the iFrameResizer
library is used. Is
it possible to somehow determine that the request came from an iframe, and not directly? To change the template
Answer the question
In order to leave comments, you need to log in
No. An iframe request is no different from a regular one. Make a separate URL specifically for the iframe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question