WebClient UploadString and Refused to set unsafe header "Content-Length"

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
tomny
Posts: 38
Joined: Sat Nov 19, 2016 7:23 pm

WebClient UploadString and Refused to set unsafe header "Content-Length"

Postby tomny » Sat Dec 10, 2016 11:48 am

Dear JS-Support:
I use the WebClient UploadString method, error: Refused to set unsafe header "Content-Length".
I do not know how to solve, can help me?

Image006.png
Image006.png (35.1 KiB) Viewed 10817 times


Thank you.
Regards,
Tomny

TaterJuice
Posts: 147
Joined: Thu Mar 16, 2017 5:40 am
Contact:

Re: WebClient UploadString and Refused to set unsafe header "Content-Length"

Postby TaterJuice » Mon Sep 18, 2017 9:37 pm

I have been experiencing this issue lately. It causes my app to crash.

I see you posted this December, 2016 (10 months ago).

Did you ever find a solution?

It is my understanding, this is a CORS issue, and we should be able to set the server's "Access-Control-Expose-Headers:" to expose the "Content-Length" header, but this solution is not working for me.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests

 

 

cron