Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include headers in http.send response object #2238

Closed
anderseknert opened this issue Mar 29, 2020 · 0 comments · Fixed by #2263
Closed

Include headers in http.send response object #2238

anderseknert opened this issue Mar 29, 2020 · 0 comments · Fixed by #2263
Assignees

Comments

@anderseknert
Copy link
Member

Expected Behavior

Headers included in http.send response.

Additional Info

Looking at a use case where we'd like to use OPA for policies on REST API endpoints, ensuring that they conform to certain guidelines (like allowing CORS requests, etc). To do this in-policy would however require the response headers to be part of the response object.

@patrick-east patrick-east self-assigned this Apr 3, 2020
patrick-east added a commit to patrick-east/opa that referenced this issue Apr 3, 2020
Previously we left them off the returned AST object, this will now
just massage them into valid types and pass them along into the
return value.

Fixes: open-policy-agent#2238
Signed-off-by: Patrick East <east.patrick@gmail.com>
tsandall pushed a commit that referenced this issue Apr 6, 2020
Previously we left them off the returned AST object, this will now
just massage them into valid types and pass them along into the
return value.

Fixes: #2238
Signed-off-by: Patrick East <east.patrick@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants