jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 270 forks source link

Test script tag src with lower case #193

Open Abrissirba opened 7 years ago

Abrissirba commented 7 years ago

An easy mistake you might do is to write XDomain instead of xdomain in the script tag. If you do so the attribute API will not work. Therefore I think the check always should be made with a lower cased version of the script src.