Closed zanhesl closed 2 years ago
Adding this to nginx.conf is doing nothing at all
After further debugging I've found out that server indeed does not return Access-Control headers
My query:
curl -H "Origin: https://pocketnet.app" -H "Access-Control-Request-Method: POST" -H "Access-Control-Request-Headers: X-Requested-With" -X OPTIONS --verbose https://pocketnetpeertube3.nohost.me/api/v1/videos/upload
result:
So how can I update server config?
It turned out that new Nginx config does not handle preflight requests on /videos/upload
, so REST API is unusable. I could make a PR to solve this (essentially just add OPTIONS handler for /videos/upload route).
yes, I let you do a PR ;)
@zanhesl If you change the server config, what do you think of also proposing a PR for the upstream nginx config file?
https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube
last peertube nginx is already implemented
Hello Everyone, suddenly request videos/upload from my local server stopped working because of some CORS issues. However, I am able to upload video from my peertube instance directly. Code worked perfectly a week ago. Do you have any ideas why my code has stopped working?
Errors:
My code:
It worked properly before the latest update. I'm currently using 3.1.0 version.