Skip to content
New issue

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

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

Already on GitHub? # to your account

A nginx reverse proxy config to avoid CORS error #681

Closed
wonderfulShrineMaidenOfParadise opened this issue Oct 7, 2022 · 1 comment
Closed

Comments

@wonderfulShrineMaidenOfParadise
location /ariang {
}

location /ariang/jsonrpc {
	proxy_pass	 http://127.0.0.1:6800/jsonrpc;
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection "Upgrade";
	proxy_set_header Host $host;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

I don't know how to solve the CORS issue so I wrote a config as the workaround. Hope this could be something useful.

@mayswind
Copy link
Owner

mayswind commented Oct 7, 2022

I think you should read the aria2 doc for help https://aria2.github.io/manual/en/html/aria2c.html

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants