Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.om2m.webapp.resourcesbrowser.json/src/main/resources/webapps/om2m.js8
-rw-r--r--org.eclipse.om2m.webapp.resourcesbrowser.xml/src/main/resources/webapps/om2m.js12
2 files changed, 12 insertions, 8 deletions
diff --git a/org.eclipse.om2m.webapp.resourcesbrowser.json/src/main/resources/webapps/om2m.js b/org.eclipse.om2m.webapp.resourcesbrowser.json/src/main/resources/webapps/om2m.js
index 1d6e3627..713bc14b 100644
--- a/org.eclipse.om2m.webapp.resourcesbrowser.json/src/main/resources/webapps/om2m.js
+++ b/org.eclipse.om2m.webapp.resourcesbrowser.json/src/main/resources/webapps/om2m.js
@@ -68,7 +68,7 @@ function get(targetId){
beforeSend: function(){},
dataType: "json",
url: context + targetId + "?rcn=5&lvl=1",
- headers : {"X-M2M-Origin" : make_base_auth(username, password), "Accept":"application/json"},
+ headers : {"X-M2M-Origin" : make_base_auth(username, password), "Accept":"application/json", "X-M2M-RI":"OM2M-webpage"},
success: function(response){
$("#login").hide();
$("#main").show();
@@ -240,7 +240,7 @@ function execute(url){
$.ajax({
type: 'POST',
url: context+url,
- headers: {"X-M2M-Origin":make_base_auth(username,password)},
+ headers: {"X-M2M-Origin":make_base_auth(username,password), "X-M2M-RI":"OM2M-webpage"},
beforeSend: function() {
},
timeout: 20000,
@@ -259,7 +259,7 @@ function retrieve(url){
$.ajax({
type: 'GET',
url: context+url,
- headers: {"X-M2M-Origin":make_base_auth(username,password)},
+ headers: {"X-M2M-Origin":make_base_auth(username,password), "X-M2M-RI":"OM2M-webpage"},
beforeSend: function() {
},
timeout: 20000,
@@ -287,7 +287,7 @@ function retrieve(url){
$.ajax({
type: 'POST',
url: context+'/'+url,
- headers: {"X-M2M-Origin":make_base_auth(username,password)},
+ headers: {"X-M2M-Origin":make_base_auth(username,password), "X-M2M-RI":"OM2M-webpage"},
beforeSend: function() {
},
timeout: 20000,
diff --git a/org.eclipse.om2m.webapp.resourcesbrowser.xml/src/main/resources/webapps/om2m.js b/org.eclipse.om2m.webapp.resourcesbrowser.xml/src/main/resources/webapps/om2m.js
index 342efeda..fa02a88b 100644
--- a/org.eclipse.om2m.webapp.resourcesbrowser.xml/src/main/resources/webapps/om2m.js
+++ b/org.eclipse.om2m.webapp.resourcesbrowser.xml/src/main/resources/webapps/om2m.js
@@ -65,7 +65,8 @@ function get(targetId) {
url: context + targetId + "?rcn=5&lvl=1",
headers: {
"X-M2M-Origin": make_base_auth(username, password),
- "Accept": "application/xml"
+ "Accept": "application/xml",
+ "X-M2M-RI": "OM2M-webpage-xml"
},
success: function(response) {
$("#login").hide();
@@ -236,7 +237,8 @@ function execute(url) {
type: 'POST',
url: context + url,
headers: {
- "X-M2M-Origin": make_base_auth(username, password)
+ "X-M2M-Origin": make_base_auth(username, password),
+ "X-M2M-RI": "OM2M-webpage-xml"
},
beforeSend: function() {},
timeout: 20000,
@@ -270,7 +272,8 @@ function retrieve(url) {
type: 'GET',
url: context + url,
headers: {
- "X-M2M-Origin": make_base_auth(username, password)
+ "X-M2M-Origin": make_base_auth(username, password),
+ "X-M2M-RI": "OM2M-webpage-xml"
},
beforeSend: function() {},
timeout: 20000,
@@ -306,7 +309,8 @@ function create(url, content) {
type: 'POST',
url: context + '/' + url,
headers: {
- "X-M2M-Origin": make_base_auth(username, password)
+ "X-M2M-Origin": make_base_auth(username, password),
+ "X-M2M-RI": "OM2M-webpage-xml"
},
beforeSend: function() {},
timeout: 20000,

Back to the top