I want to redirect url, general code is as follows:
<html>
<head>
<meta name="referrer" content="always">
<script>
document.location.replace(url);
</script>
</head>
Other browsers can send referer, why the Safari is not?
How to send referer in the Safari browser on the ios?
Can you help me please.
The transition to many websites to https websites instead of http websites has caused a loss of referrer tags; this occurs because when transferring from an http link into a https link, the referrer information is dropped.
So if you're on an http page, and link off to an https page, no referrer header is available when you land there.
One solution to this is to change your pages to https; then your visitors will be going from https to https, and the referrer information will come along as expected.
Please try to add this to your
This should fix it for desktop Safari. It may not fix it for ios safari. You may want to use content of origin or place it as a hidden field in the page via JavaScript.
A good explanation: http://smerity.com/articles/2013/where_did_all_the_http_referrers_go.html
I You using frame(in my case) then use document.location.href = url; instead of replace(url)
Related
I am trying to load few of my websites in safari browser in mobile. When I explicitly run http urls in the browsers to see if it's been redirected to https url. I've tried different browsers in both IOS and android. But in safari browser the http url is not being redirected to https. I've tried with incognito and newly installed browser too.
Can anyone explain why this happens? Thanks in advance.
We've had the following iOS message appear when logging in to our website:
Is there a file we can place into our website's root folder to tell iOS to redirect to the following exact URL rather than just our homepage when a user taps on Change Password on Website?
www.example.com/pages/reset-password/
One way to do it is by setting up a /.well-known/change-password redirect on your server to your actual password reset page.
Using your example, create a redirect from https://www.example.com/.well-known/change-password to https://www.example.com/pages/reset-password/ That's it. For the redirection, use the HTTP status code 302 Found, 303 See Other or 307 Temporary Redirect.
Alternatively, you could serve an HTML page at /.well-known/change-password with a <meta> tag using an http-equiv="refresh".
<meta http-equiv="refresh" content="0;url=https://www.example.com/pages/reset-password/">
The redirect is supported in Safari and Chromium-based browsers, and there's a W3C spec that defines the behavior. More details in https://web.dev/change-password-url/
So, I am throwing a hail Mary pass here, to see if anyone can catch it. I checked on Twitter and came up empty.
I added the following meta tag to the head of a website:
<meta property="twitter:account_id" content="3XXXXXXXX" />
I then confirmed that the tag is in the source HTML in between the head tags
Then from inside my account panel on Twitter there is a "Verify website" tool.
When I enter the URL and click "Verify website, I get the following:
Website ownership cannot be verified. Please add the metatag to your site.
Perhaps someone else has grappled with this and solved the issue? Thanks
I had the same issue. I assume your websites is "https" to fix this you need to temporarily set your website not to display "http" in the address. Once you hit verify it should work and you can change it back to "https" when verified.
Solved!
So I tried the following, to no avail:
Remove the middleware to redirect http:// URLs to https:// URLs (such that the site runs on HTTP without redirecting to HTTPS).
Unfortunately, this change did NOT seem to work by itself... so we clicked on the "Help?" button at the upper-right of the ads.twitter.com account dashboard.
After explaining the issue to the Twitter support staff, they were able to change something in their system (likely, invalidate some cached record somewhere) and the validation successfully went through. So don't be afraid to reach out to Twitter for support!
After verification, we were able to re-introduce the HTTP -> HTTPS middleware on our site, while remaining verified with Twitter.
On my website https:, I am accessing an url in an iframe with http, but it is gives an error:
insecure content
and the page is not displaying completely but only half page.
What can I do to solve this error?
Has someone experienced it before?
Thanks for helping.
I am trying to host a very simple webpage that has a link to a passkit file on the server.
My goal is that users visit this page and click on an image and safari detects the pass and downloads it.
For testing purposes both the HTML file and the pass are in the same directory, here is the simple html page that I am using to link to the pass:
<html>
<head>
</head>
<a mimetype="application/vnd.apple.pkpass" href="pass.pkpass">
<img src="pass.jpg" />
</a>
</html>
For some reason this is failing, and I am getting a message in safari saying that it cannot download the file.
Any ideas on what is wrong?
I have emailed the pass to myself to test and it notices it when I open it in mail and adds it to passbook just fine.
Have you checked that the server understands the mime type, like this other post?
Sharing Passbook Passes .pkpass
It looks like to me that .pkpass files can't be served up from static links into Mobile Safari, the response must have some headers set. Here is what I do:
The server responding to the link must set the Content-Type and Content-Length headers to the 'application/vnd.apple.pkpass' and length of the .pkpass file. My code also sets the Content-Disposition header to 'attachment; ' + filename_header to signify to Mobile Safari that the content needs to be downloaded.