• Skip to content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Content
  • Java
  • Sightly
  • AngularJS
  • Web services
  • More
    • Testing
    • Adobe Marketing Cloud
      • Adobe Analytics
      • Adobe Campaigns
      • Adobe Target
    • Replication
    • Forms
    • Files
    • 3rd Party
    • Troubleshooting
    • Installation and Configuration
    • References

Practical AEM

By Developers To Developers

  • Content
  • Java
  • Sightly
  • AngularJS
  • Web services
  • More
    • Testing
    • Adobe Marketing Cloud
      • Adobe Analytics
      • Adobe Campaigns
      • Adobe Target
    • Replication
    • Forms
    • Files
    • 3rd Party
    • Troubleshooting
    • Installation and Configuration
    • References

How to set httpOnly and Secure flags on login-token

April 25, 2017 By ksurendra

1. Update “clientheaders.any” file (example location: /etc/httpd/conf)
“X-Forwarded-Proto”

2. Add the below to “dispatcher-vhosts.any” file (example location: /etc/httpd/conf.d)

1
2
3
4
NameVirtualHost *:443
<VirtualHost *:443>
RequestHeader set X-Forward-Proto "https"
</VirtualHost>

3. Restart Apache (sudo /usr/sbin/apachectl restart)

4. Update the values in OSGI Config – Apache Felix Http Service SSL Fliter
SSL forward header: X-Forwarded-Proto
SSL forward value: https

5. Open AEM’s using https url and login. You can view the cookies on chrome/firefox and should see the httpOnly and Secure flags/attributes for “login-token” to be True/Checked.

Filed Under: Dispatcher, Troubleshooting Tagged With: dispatcher, httponly, login-token, secure, x-forwarded-proto

Primary Sidebar

  • Facebook
  • Google+
  • Instagram
  • LinkedIn
  • Pinterest
  • Twitter

Angular JS

Issues with download files in IE using Angular and Fix

November 20, 2015 By ksurendra

AngularJS Setup in AEM

November 11, 2015 By ksurendra

More Topics

  • 3rd Party
  • AngularJS
  • Assets
  • Content
  • Dispatcher
  • Files
  • Forms
  • Installation and Configuration
  • Java
  • References
  • Replication
  • Reports
  • Sightly
  • Sling
  • Testing
  • Troubleshooting
  • Uncategorized
  • Web services

Footer

About Us

This is an example of a text widget which can be used to describe a particular service. You can also use other widgets in this location.

Examples of widgets that can be placed here in the footer are a calendar, latest tweets, recent comments, recent posts, search form, tag cloud or more.

Sample Link.

Recent Posts

  • Configuring AEM as a Service on CentOS 7
  • How to set httpOnly and Secure flags on login-token
  • Thumbnails and Renditions for EPS and AI files in AEM – Using ImageMagick and GhostScript
  • Integrating Webtrends with AEM
  • Integrate AEM with Tealium
  • AEM 6.2 Out-of-the-box Asset Reports
  • AEM 6.2 Out-of-the-box Reports

Search

Tags

activate aem aem 6.2 analytics angularjs asset reports books brackets content crx disk space dispatcher dropdown-lists eclipse ffmpeg file-download git google-maps imagemagick junit miscadmin mockito oauth ootb page activity report recaptcha references reports rest reverse proxy sightly sling-servlet submit-action tag management tealium testing tools vault video video-renditions videos vlt wcmusepojo web services webtrends

Copyright © 2019 · Magazine Pro on Genesis Framework · WordPress · Log in