In case allowing all origins (*) is not acceptable the browser needs to send Origin header with a configured URL.
How it works
The default behavior is not changed. When the originUrlString property is set, the library will put all scripts in the HTML and load it from the origin url as specified.
Tests
The signalR server used in the demo doesn't work for me. I used a local server to verify the changes for iOS.
Why
In case allowing all origins (
*
) is not acceptable the browser needs to sendOrigin
header with a configured URL.How it works
The default behavior is not changed. When the
originUrlString
property is set, the library will put all scripts in the HTML and load it from the origin url as specified.Tests
The signalR server used in the demo doesn't work for me. I used a local server to verify the changes for iOS.