Skip to content

How to get full URL including parameters? #2474

Answered by yevon
yevon asked this question in Q&A
Discussion options

You must be logged in to vote

Finally solved this temporarily until I can access to the full url through params. I modified the nginx proxy to add the full url with parameters to a custom header, and then accessing to that through postgrest is easy:

nginx:
proxy_set_header Custom-Header §uri?§args;

pgsql:
current_setting('request.headers', true)::json->>'custom-header)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@steve-chavez
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yevon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2471 on September 13, 2022 17:15.