gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.73k stars 489 forks source link

policy server file domain match error #163

Closed HunterPan closed 9 years ago

HunterPan commented 9 years ago

for example: first rule <allow-access-from domain="*.test.com" to-ports="*" /> second rule <allow-access-from domain="10.44.1.10" to-ports="*" /> the first rule can not sucess,flex error:(SecurityError: Error #2048) but the second rule sucess. why? I google many times but not solved .

gimite commented 9 years ago

Hm I'm not sure. What if it's an exact host name without "*"? e.g., "foo.test.com"

HunterPan commented 9 years ago

@gimite , I got answer. the exactly rule must by written in correct format. bad: <allow-access-from domain="*.test.com" to-ports="*" /> good: <allow-access-from domain="*.test.com" to-ports="*"/> note no space at end of line in good rule. because I had no more knowlage about these,so do you sure only ' web-socket-js' has the problem? thanks a lot.