playframework - Intercept request and add a cookie -


i intercept requests play backend , add custom cookie them. know response has withcookie method, unable find similar request. facilities deal cookies in request seem read only, being complete novice play stuck

i need because migrating existing webapp cordova based mobile app not allow cookies. our authentication system based on session cookies. have been able send session id in json format , want send header , if needed generate session cookie on filter or interceptor in play don't need change our authentication system in backend.

both globalsettings or play filter candidates intercept request, still don't know how add cookie it. can give me small sample or explanation of how that??

thanks!!

it seems bit stupid.

i can provide cookies want play using cookie http header, no need intercept request here.

sorry noise


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -