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!

HttpOnly and Secure flags in session cookie and all cookies for Oracle APEX application

Kiran PawarJul 5 2017 — edited Jul 9 2017

Hi All,

Oracle APEX Version: 3.2 to 5.1

Oracle DB Version: 11gR2 to 12cR2

Is there a way to set the HttpOnly flag for session cookie and all cookies for Oracle APEX application (guessing that there are two cookies for Oracle APEX application one is session cookie (default structure WWV_CUSTOM-F_'|| WORKSPACE_ID ||'_'|| APP_ID if not named cookie) and other is username cookie (LOGIN_USERNAME_COOKIE).

I found that apex.oracle.com applications are able to set these both flags:

pastedImage_0.png

Now, there is way to set the session cookie secure flag by specifying secure attribute yes in "Session Cookie Attributes" in current "Authenication Scheme":

pastedImage_1.png

which in turn for each type of authentication (internally APEX Engine) calls OWA_COOKIE.SEND procedure with secure flag as set.

But the definitions for OWA_COOKIE.SEND does not have option to set HttpOnly flag for the cookie.

Refer:

So, my question is:

  • Is there declarative support either in Oracle APEX or Oracle Database (packages) that will help set HttpOnly flag for all the cookies for an APEX application? OR is it going to be supported in coming versions of Oracle APEX/Oracle Database?
  • Is there workaround to currently set HttpOnly flag for existing Oracle APEX (3.2 to 5.1) applications?
  • How is apex.oracle.com able to set these flags for the packaged applications? (NOTE: Our client uses Oracle OAM based SSO with HTTP Header Variable as Authentication Scheme, but i would like to know whether these flag settings for cookies are possible irrespective of particular Authentication Scheme/Infrastructure Setup for Oracle APEX)

Regards,

Kiran

This post has been answered by Christian Neumueller-Oracle on Jul 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2017
Added on Jul 5 2017
7 comments
2,574 views