Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First time Guests visiting have to repeat the visit to download from link #9

Open
BoQsc opened this issue Nov 11, 2020 · 8 comments
Open

Comments

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 12, 2020

For testing

C:\Program Files (x86)\Google\Chrome\Application\chrome --profile-directory="Guest Profile" vaido.world

refrence taken:

C:\Users\Juozas\AppData\Local\Google\Chrome\User Data\Guest Profile

Also Windows .lnk guest mode shortcut

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --guest vaido.world

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 12, 2020

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 12, 2020

by simply visiting a website, and later using the links with download attribute - does not resolve the problem.

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 12, 2020

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 13, 2020

Reloading vaido.world page before pressing download link does prevent the bug.

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 22, 2020

visiting https://vaido.world instead of http://vaido.world resolves the issue.
It seems that download links having a different protocol are considered CORS (Cross-origin resource sharing) infrigement

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 28, 2020

Previous solution, redirect to https by using JavaScript

		<head><script>
			if (window.location.protocol === "http:"){
			    document.body.style.visibility = "hidden";
			    window.location.href = window.location.href.replace('http:', 'https:');    
			}
		</script></head>

@BoQsc
Copy link
Contributor Author

BoQsc commented Nov 28, 2020

Changing download links from https to http or to relative path .\ does not resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant