3
Reply

CORS error on c# embedded http server

kubilay bayraktar

kubilay bayraktar

Apr 7 2015 7:17 AM
807

Hi,

I have two projects; First one is a asp.net web project and the second one is embedded http server library project.

Embedded http server project is taken from : embedded http server project

I want to save a video file from user's local to user's shared storage. I'm getting and sending file from browser using ajax request. Embedded http server is supposed to get bytearray and save video on client's shared storage. I have a problem that I spent days to solve but not yet found a solution. 

In chrome it stucks on stream.CopyTo(streamReader); 

In firefox and IE it gives "Cross-Origin Request Blocked" error but firefox saves file even it gives the error.

I have attached the code images.




Attachment: pictures.rar

Answers (3)