I
I
Ilya Chichak2017-03-27 08:25:32
Django
Ilya Chichak, 2017-03-27 08:25:32

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

1 answer(s)
A
Andrey Myvrenik, 2017-03-27
@ilya_chch

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 question

Ask a Question

731 491 924 answers to any question