Videos/Upload Cors Issue

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?


My code:

I would be very grateful for all your suggestions.

You should hide the Bearer in your screenshots, otherwise someone could use your identity on your server

1 Like

Thanks, fixed. Anyways it is a test server.

Adding following lines to nginx config solves nothing:

It turned out that I was modifying wrong config file. Actually, this is nginx issue relevant for latest peertube-yunohost version. Nginx was configured incorrectly. I have manually changed it, so it worked.

Setting Access-Control-Allow-Origin to * could be a security problem, are you sure that this is what you need?