poostwoud commented on issue #10936:
URL: https://github.com/apache/apisix/issues/10936#issuecomment-1947895402
@shreemaan-abhishek thank you!
I'm using the `serverless-pre-function`-plugin. It has priority `10000` and
will be executed before the `openid-connect`-plugin, which has priority `2599`.
The following function reads the `token`-cookie and sets the
`Authorization`-header with the cookie value using the `Bearer`-scheme:
```json
{
"functions": [
"return function (conf, ctx) local core =
require(\"apisix.core\"); core.request.set_header(ctx, \"Authorization\",
\"Bearer \" .. ngx.var.cookie_token); end"
]
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]