Stuck trying to follow the documentation "Providing HTML Content Using Htmx" using Supabase. #4173
-
I've been looking at the documentation on providing html content and trying to apply it using supabase. When I try to see the html after running this:
and replacing I see the pure html text, not a webpage rendering on the browser. I suspect this would be fine if I used my own local postgres instance. I think I need to fix something with supabase? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Did you reload the schema cache after creating the function? |
Beta Was this translation helpful? Give feedback.
-
This is a Supabase limitation, they require custom domains (which requires a paid plan) for allowing html from RPC otherwise they force the content type to be plain text in their proxy. Hm, should we should put a note for on the how-to? Like: "Some PostgREST cloud providers silently rewrite content types from RPC. Check with your provider support or docs to see what content types are allowed". |
Beta Was this translation helpful? Give feedback.
This is a Supabase limitation, they require custom domains (which requires a paid plan) for allowing html from RPC otherwise they force the content type to be plain text in their proxy.
Hm, should we should put a note for on the how-to? Like:
"Some PostgREST cloud providers silently rewrite content types from RPC. Check with your provider support or docs to see what content types are allowed".