diff options
author | Melanie Thielker | 2016-03-16 20:04:52 +0100 |
---|---|---|
committer | Melanie Thielker | 2016-03-16 20:04:52 +0100 |
commit | e8b46023e47399e9dcc0057a4380ca4fe49908ee (patch) | |
tree | aa384c79130605f8e5740f689a81226cc47f9335 /OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |
parent | Implement Access-Control-Allow-Origin for HTTP LSL server (diff) | |
download | opensim-SC-e8b46023e47399e9dcc0057a4380ca4fe49908ee.zip opensim-SC-e8b46023e47399e9dcc0057a4380ca4fe49908ee.tar.gz opensim-SC-e8b46023e47399e9dcc0057a4380ca4fe49908ee.tar.bz2 opensim-SC-e8b46023e47399e9dcc0057a4380ca4fe49908ee.tar.xz |
Add osRequestURL and osRequestSecureURL with an options list.
Only currently supported option is "allowXss" which will send the needed
Access-control-allow-origin: * header to allow xss scripting against
the LSL http server.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs index 31393bb..ee07eee 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs | |||
@@ -1054,5 +1054,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
1054 | { | 1054 | { |
1055 | return m_OSSL_Functions.osRegexIsMatch(input, pattern); | 1055 | return m_OSSL_Functions.osRegexIsMatch(input, pattern); |
1056 | } | 1056 | } |
1057 | |||
1058 | public LSL_String osRequestURL(LSL_List options) | ||
1059 | { | ||
1060 | return m_OSSL_Functions.osRequestURL(options); | ||
1061 | } | ||
1062 | |||
1063 | public LSL_String osRequestSecureURL(LSL_List options) | ||
1064 | { | ||
1065 | return m_OSSL_Functions.osRequestSecureURL(options); | ||
1066 | } | ||
1057 | } | 1067 | } |
1058 | } | 1068 | } |