zoraxy icon indicating copy to clipboard operation
zoraxy copied to clipboard

[HELP] CORS Error with Immich

Open keineantwort opened this issue 9 months ago • 1 comments

What happened? I want to use the HACS Add On Wallbanel together with immich. I need to configure my proxy, so that it responds to the OPTIONS Request and does not sends the request to the immich server. I cannot find any option to configure something like the nginx config as stated in the documentation of wallpanel.

Describe what have you tried Tried to find a possibility to configure zoraxy like the nginx configuration example. I added the Header as described in the example, but zoraxy sends the OPTIONS request to immich, which does not exist, so it returns a 404.

I also tried to build a zoraxy plugin. But I did not get the development started, as I have no clue about Go development. Another try was to write a python script that proxies all /api/ calls, but that destroys the websocket connections to immich.

Describe the networking setup you are using Here are some example, commonly asked questions from our maintainers:

  • Are you using the docker build of Zoraxy? the LXC container setup from Proxmox Community Scripts
  • Your Zoraxy version? 3.1.9

Am I missing something or is this kind of configuration not possible? Should I open a feature request?

keineantwort avatar May 31 '25 09:05 keineantwort

@keineantwort Zoraxy currently do not have the feature required to block / filter certain type of HTTP methods. It just forward everything to upstream. I think this worth a feature request on its own.

For the plugin, you can kinda create a plugin in any language, including python, to intercept the requests. I am still working on the doc and not yet written to the part for supporting languages other than Go. If you need help, you can directly email me for the details and we can try to work it out together 👍🏻

tobychui avatar May 31 '25 13:05 tobychui