My app shows an information page loaded from amazon s3 (a public html file). An user is experiencing this when using 3G data connection:
when loading this page, an advertising banner is being loaded over the official html code or the web view redirects to another web page.
How could this happen?
What is the proper way to prevent this unwanted situation?
Related
I am trying to load the host1 page, it contains iframe and the URL for the iframe is host2. But iframe with URL host2 is not loading properly.
I am loading host1 page through SFSafariViewController. If I load the same thing with the iPhone safari browser then it is working fine but not working with SFSafariViewController. As per my understanding, WKWebview has some limitations but SFSafariViewController doesn't have but still facing the issue.
I have tried the below options also in iOS14.5.1 but still, it is not working:
Enabled Allow Cross-Website Tracking by using NSCrossWebsiteTrackingUsageDescription in info.plist
Enabled Allow Tracking by using Privacy - Tracking Usage Description in info.plist
used WKAppBoundDomains also.
am I missing anything, please help me out?
Adding few more details:
When I am inspecting the code got the below errors with the mobile app SFSafariViewCotroller and the required content is not loading, but it is working fine with mobile, desktop Safari browsers and not showing any errors.
Refused to load {URL://_csrfRefresh=1} because it does not appear in the frame-ancestors directive of the Content Security Policy.
Sandbox access violation: Blocked a frame at {URL} from accessing a cross-origin frame. Ther being accessed is sandboxed and lacks the "allow-same-origin" flag
Attaching a screenshot below for reference,
To block web content I need to create an iOS background app. Which will get the URL address from any browser on the device, before loading the URL content check that URL by HTTP web service. Is there any way to get URL address from any browser on the device?
There is an app in app store Shield, which can filter any safari URL before loading content. How does this app acquire the safari web URL to filter the content? Is it possible to acquire web URL of any browser from another app in iOS?
Please let me how to achieve that.
Hey erveryone,
im currently working on an app which should contain an uiwebview to show a website with some reports (used a website because we want to show it also on android).
The data for the reports were loaded from another page by ajax with cross domain headers (Access-Control-Allow-Origin headers are set) and it worked fine in firefox, chrome and the other standard browsers.
It also worked on mobile safari.
But nevertheless this did not work in the uiwebview.
The uiwebview is loading and displaying the website but without the data.
The base part of the code is :
[self.webView loadRequest:[NSURLRequest requestWithURL:[APPCONTEXT.service reportGetWebPageURL]]]
Should i have to set any headers with the website request or is it perhaps not possible to load the data ?
Thanks for helping me with this issue
EDIT
[APPCONTEXT.service reportGetWebPageURL] // NSURL*
Cannot post images so this should help to understand the system.
UIWebView (Request to show Website1)--> Website1 (AJAX Request for data to show)--> Website2
I have created on web app which supports html5 appcache and I can load that app offline.
I can also see that appcache when I visit URL chrome://appcache-internals/
Now I am using same offline weburl to work on cefclient applicaiton (https://code.google.com/p/chromiumembedded/)
As soon as I try to load that offline url ,exisiting entry from chrome://appcache-internals/ gets removed and my offline web app is not working in cef.
any idea why that is happening. How can I find out why appcache not working with cef.
I'm not a heavy coder here, so i'll ask my best.
We made a brochure about our home town. However users spreading it trough facebook cant open the links when in their facebook app. The app does not send it to safari either. If opened directly from safari it is no problem.
The link is http://visit.lodingen360.com
Is there anything i can do to the site/index.html/whatever that will make it open in safari when the link is clicked in the facebook app for ios? (that won't affect visiting the site from pc's and so on)
Is there anything uiwebview won't read that can force it to safari, so that we can redirect from the thing opened in safari to the site?
Your page will load and display in Mobile Safari, I tried with UIWebView and it will load without displaying an error, but the brouchure page content won't display.
Safari and UIWebView have different user agent's - therefore my guess is that because your site uses flash but it checking for the type of browser you are not performing the check correctly for UIWebView and the page is attempting to use flash which isn't supported.