I use monaca to create an app that displays websites, but when I run the app on my device,
net::ERR_BLOCKED_BY_RESPONSE
is displayed, and even on the monaca debugger
Refused to display 'http://www.Address name.jp/'in a frame cause it set'X-Options' to name'
www/index.html:0
(I would like to refrain from writing the address here because it is the url of the school.)
and log came out and I can't see it well, the UI is using Onsen UI V2 Angular 1 Tabbar.Also, the web display section is displayed using iframe.
<ons-template id="page1.html">
<ons-pageons-show="item.title='Monaca'"ng-controller="page1Controller">
<iframe frameborder="0"ng-src="http://www.Address name.jp" set-iframe></iframe>
</ons-page>
I understand that the iframe part is causing something wrong, but I haven't made an application yet, so I don't know how to rewrite this part, and I don't know what to add or change the settings while using this iframe.I would like to create an app where I can touch the two tabs below and see the two sites alternately with the tabs displayed.
Please let me know the solution and how it would be better to fix it.
Thank you for your cooperation.
Error Message: "because it set'X-Frame-Options' to 'sameorigin'"
[Translation] Because 'X-Frame-Options' is 'sameorigin' (only on the same site).
[Description] http://www.Address name.jp/ is a different site from the site on the question page.
However, 'X-Frame-Options' has to be on the same site, so it doesn't appear.
Change your settings to view http://www.Address name.jp/!
X-Frame-Options:sameorigin
X-Frame-Options: allow-from http://www.Address name.jp/
If you change to
The "http://www.Address name.jp/" site page should now be displayed in the OK setting.
Try it.
© 2024 OneMinuteCode. All rights reserved.