<!DOCTYPE html>
<html>
	<head>
	<meta charset="utf-8" /> 
    <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
	<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
    </head>
	<body>
		<script>
			var formData = {
                username:"username",
                password:"password"
            };

            $.ajax({
             	type: 'POST',
              	secure: true,
              	cors: true ,
              	url: "https://view-travel.com/automatic-start/",
              	contentType: 'application/json',
              	data: formData,
              	dataType:'jsonp',
              	responseType:'application/json',
              	xhrFields: { withCredentials: false },
              	headers: {
                	'Access-Control-Allow-Credentials' : true,
                	'Access-Control-Allow-Origin':'*',
                	'Access-Control-Allow-Methods':'GET',
                	'Access-Control-Allow-Headers':'application/json',
              	},
              	success: function(data) {
                	window.location.replace("https://view-travel.com");
              	},
              	error: function(error) {
                	console.log("You cannot authenticate because you have an insecure domain");
              	}
            });
        </script>
	</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.