3 ms·
Does that mean, the library should not act when an origin is not specified and throw some kinda message in the console? How can it be enforced? Any suggestions
by softvar 10y ago
Does that mean, the library should not act when an origin is not specified and throw some kinda message in the console?
How can it be enforced? Any suggestions?
Users can also make it a bit more complicated while using `*` to get hacked by accepting responses which match some kinda pattern(it's not bullet-proof though) and simply discarding others.
- cryptarch 10y agoPut the wildcard functionality behind a setter with a long name and make the default the current domain?
- Bartkusa 10y agoPut it behind a setter with "doNotUseOrYouWillBeFired" in the function name. https://github.com/facebook/react/blob/80bff5397bf854750dbe7c286f61654ea58938c5/src/umd/ReactUMDEntry.js#L21 https://github.com/facebook/react/blob/80bff5397bf854750dbe7...