Last post Aug 28, 2017 05:16 AM by Jean Sun
Aug 25, 2017 11:48 AM|Vladimir Khil|LINK
I have enabled CORS in my self-hosted OWIN SignalR app. Everything is working fine in all browsers except Safari. I have additionally added these headers:
Access-Control-Allow-Headers: Accept, Origin, Authorization, Content-Type, Range, X-Requested-With
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
That allows Web API hosted on the same OWIN host to work. So I can assume that CORS is generally working.
But SignalR requests return "Error during negotiation request".
Does anybody have any experience with this problem? Can I somehow get extra information without accessing Safari browser (maybe from .fail() continuation)?
Aug 25, 2017 04:40 PM|Vladimir Khil|LINK
Sorry, the problem was with storing crossdomain cookies in Safari. CORS is working ok.
Aug 28, 2017 05:16 AM|Jean Sun|LINK
the problem was with storing crossdomain cookies in Safari. CORS is working ok.
I'm glad to hear that you have solved your issue and thanks for your sharing.