UWP applicationcontenturirules url rule added but not working for iframe
I am using UWP store app using typescript and winjs. As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation. so we decided to use IFrame which allow to receive form post data. for this I have add the remote web page URI to the ApplicationContentUriRules section of the package manifest.
but getting me below error while performing post form action.
APPHOST9625: Unable to navigate to: 'https://www.mytestweb.com/'. An
iframe attempted to navigate to a URI that is not included in the
ApplicationContentUriRules for this app. Use a x-ms-webview element to
view the URI instead, or add the URI to the ApplicationContentUriRules
section of the package manifest so that the iframe can navigate to it.
(In Visual Studio, add this URI to the Content URIs tab of the
Manifest Designer.)
Is anything I am missing or wrong? I need help to resolve this.
below is my sample code,
<form id="my-form" action="https://www.mytestweb.com/operations" method='post' target="my-iframe">
<div class="col">
<div class="row">
<input type="hidden" name="token" value="largeTokenString" />
</div>
<div class="row">
<input type="hidden" name="transaction" value="serializedTransactionData" />
</div>
<div class="buttonContainer">
<button type="submit" data-bind="click: postFromData">Post</button>
</div>
</div>
</form>
<iframe id="my-iframe" name="my-iframe" src="about:blank"></iframe>
When I submit on from post button remote URL loads with form data, without from data my remote URL is not loaded.
html5 iframe uwp navigation winjs
|
show 1 more comment
I am using UWP store app using typescript and winjs. As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation. so we decided to use IFrame which allow to receive form post data. for this I have add the remote web page URI to the ApplicationContentUriRules section of the package manifest.
but getting me below error while performing post form action.
APPHOST9625: Unable to navigate to: 'https://www.mytestweb.com/'. An
iframe attempted to navigate to a URI that is not included in the
ApplicationContentUriRules for this app. Use a x-ms-webview element to
view the URI instead, or add the URI to the ApplicationContentUriRules
section of the package manifest so that the iframe can navigate to it.
(In Visual Studio, add this URI to the Content URIs tab of the
Manifest Designer.)
Is anything I am missing or wrong? I need help to resolve this.
below is my sample code,
<form id="my-form" action="https://www.mytestweb.com/operations" method='post' target="my-iframe">
<div class="col">
<div class="row">
<input type="hidden" name="token" value="largeTokenString" />
</div>
<div class="row">
<input type="hidden" name="transaction" value="serializedTransactionData" />
</div>
<div class="buttonContainer">
<button type="submit" data-bind="click: postFromData">Post</button>
</div>
</div>
</form>
<iframe id="my-iframe" name="my-iframe" src="about:blank"></iframe>
When I submit on from post button remote URL loads with form data, without from data my remote URL is not loaded.
html5 iframe uwp navigation winjs
You need to usex-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.
– Xavier Xie - MSFT
Nov 26 '18 at 6:11
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
update with sample code.
– Kishor
Nov 29 '18 at 6:44
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05
|
show 1 more comment
I am using UWP store app using typescript and winjs. As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation. so we decided to use IFrame which allow to receive form post data. for this I have add the remote web page URI to the ApplicationContentUriRules section of the package manifest.
but getting me below error while performing post form action.
APPHOST9625: Unable to navigate to: 'https://www.mytestweb.com/'. An
iframe attempted to navigate to a URI that is not included in the
ApplicationContentUriRules for this app. Use a x-ms-webview element to
view the URI instead, or add the URI to the ApplicationContentUriRules
section of the package manifest so that the iframe can navigate to it.
(In Visual Studio, add this URI to the Content URIs tab of the
Manifest Designer.)
Is anything I am missing or wrong? I need help to resolve this.
below is my sample code,
<form id="my-form" action="https://www.mytestweb.com/operations" method='post' target="my-iframe">
<div class="col">
<div class="row">
<input type="hidden" name="token" value="largeTokenString" />
</div>
<div class="row">
<input type="hidden" name="transaction" value="serializedTransactionData" />
</div>
<div class="buttonContainer">
<button type="submit" data-bind="click: postFromData">Post</button>
</div>
</div>
</form>
<iframe id="my-iframe" name="my-iframe" src="about:blank"></iframe>
When I submit on from post button remote URL loads with form data, without from data my remote URL is not loaded.
html5 iframe uwp navigation winjs
I am using UWP store app using typescript and winjs. As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation. so we decided to use IFrame which allow to receive form post data. for this I have add the remote web page URI to the ApplicationContentUriRules section of the package manifest.
but getting me below error while performing post form action.
APPHOST9625: Unable to navigate to: 'https://www.mytestweb.com/'. An
iframe attempted to navigate to a URI that is not included in the
ApplicationContentUriRules for this app. Use a x-ms-webview element to
view the URI instead, or add the URI to the ApplicationContentUriRules
section of the package manifest so that the iframe can navigate to it.
(In Visual Studio, add this URI to the Content URIs tab of the
Manifest Designer.)
Is anything I am missing or wrong? I need help to resolve this.
below is my sample code,
<form id="my-form" action="https://www.mytestweb.com/operations" method='post' target="my-iframe">
<div class="col">
<div class="row">
<input type="hidden" name="token" value="largeTokenString" />
</div>
<div class="row">
<input type="hidden" name="transaction" value="serializedTransactionData" />
</div>
<div class="buttonContainer">
<button type="submit" data-bind="click: postFromData">Post</button>
</div>
</div>
</form>
<iframe id="my-iframe" name="my-iframe" src="about:blank"></iframe>
When I submit on from post button remote URL loads with form data, without from data my remote URL is not loaded.
html5 iframe uwp navigation winjs
html5 iframe uwp navigation winjs
edited Nov 29 '18 at 6:42
Kishor
asked Nov 23 '18 at 10:24
KishorKishor
141111
141111
You need to usex-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.
– Xavier Xie - MSFT
Nov 26 '18 at 6:11
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
update with sample code.
– Kishor
Nov 29 '18 at 6:44
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05
|
show 1 more comment
You need to usex-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.
– Xavier Xie - MSFT
Nov 26 '18 at 6:11
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
update with sample code.
– Kishor
Nov 29 '18 at 6:44
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05
You need to use
x-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.– Xavier Xie - MSFT
Nov 26 '18 at 6:11
You need to use
x-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.– Xavier Xie - MSFT
Nov 26 '18 at 6:11
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
update with sample code.
– Kishor
Nov 29 '18 at 6:44
update with sample code.
– Kishor
Nov 29 '18 at 6:44
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05
|
show 1 more comment
1 Answer
1
active
oldest
votes
I am able to resolve my issue. One of my team member question me, how you know your app refers updated app manifest. I don't know where I find this.
So I have uninstall my app from computer clear app memory from app data using app name search and delete. Create new app package using msbuild command and install new app, now my app able to load remote URL successfully in IFrame.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444867%2fuwp-applicationcontenturirules-url-rule-added-but-not-working-for-iframe%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am able to resolve my issue. One of my team member question me, how you know your app refers updated app manifest. I don't know where I find this.
So I have uninstall my app from computer clear app memory from app data using app name search and delete. Create new app package using msbuild command and install new app, now my app able to load remote URL successfully in IFrame.
add a comment |
I am able to resolve my issue. One of my team member question me, how you know your app refers updated app manifest. I don't know where I find this.
So I have uninstall my app from computer clear app memory from app data using app name search and delete. Create new app package using msbuild command and install new app, now my app able to load remote URL successfully in IFrame.
add a comment |
I am able to resolve my issue. One of my team member question me, how you know your app refers updated app manifest. I don't know where I find this.
So I have uninstall my app from computer clear app memory from app data using app name search and delete. Create new app package using msbuild command and install new app, now my app able to load remote URL successfully in IFrame.
I am able to resolve my issue. One of my team member question me, how you know your app refers updated app manifest. I don't know where I find this.
So I have uninstall my app from computer clear app memory from app data using app name search and delete. Create new app package using msbuild command and install new app, now my app able to load remote URL successfully in IFrame.
answered Nov 30 '18 at 8:41
KishorKishor
141111
141111
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444867%2fuwp-applicationcontenturirules-url-rule-added-but-not-working-for-iframe%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You need to use
x-ms-webview
element to view the URI instead. In Local context, it cannot load the content of web context.– Xavier Xie - MSFT
Nov 26 '18 at 6:11
I want to pass large volume data to container to load remote URL which is possible with iframe as form target but not with x-ms-webview.
– Kishor
Nov 26 '18 at 12:04
Actually, I did not understand what you said about 'As per requirement we need to load remote web page in our app and that page required some form parameter which are not possible to set with query string as size limitation.'. Could you please provide a Minimal, Complete, and Verifiable example?
– Xavier Xie - MSFT
Nov 29 '18 at 6:01
update with sample code.
– Kishor
Nov 29 '18 at 6:44
iFrame is of a very restricted usage in UWP app. So it is strongly not recommended to use it in your project. As a workaround, you can use Ajax to fetch the data and write some controls on your pages and fill them with the Ajax response data, that you received.
– Elvis Xia - MSFT
Nov 29 '18 at 9:05