Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to check from which url an iframe is embedded

cacodriDec 1 2020

Hello everyone,
I need to verify that an iframe is embedded only in an authorized url.
the concrete example is:
<iframe src = "https://app.website.com/ords/f?p=PORTALPAGO:101:::NO::P101_ID_SOLICITUD:383CFD95204D04ADD930DF906EECDEA0" scrolling = "auto" allow = "microphone; camera" width = "1560 "height =" 900 "> </iframe>
For example I want it to only display in the url "https://other_website.com/portal", but for any other I reject it and it does not display
currently I use OWA_UTIL.GET_CGI_ENV ('HTTP_HOST') which always delivers "app.website.com", I need it to deliver "other_website.com/portal"
Can someone help me with this please

Thank you so much

Carlos

Comments
Post Details
Added on Dec 1 2020
1 comment
223 views