Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $.ajax({
- url: 'https://apps.fhict.nl:443/api/v1/people/important',
- xhrFields: {
- withCredentials: true // Cookies meesturen
- },
- crossDomain: true,
- success: function(data) {
- alert('Jes!');
- console.log(data);
- },
- error: function(data) {
- alert('Balen.');
- console.log(data);
- }
- });
- });
- // OUTPUT:
- // XMLHttpRequest cannot load https://apps.fhict.nl/api/v1/people/important.
- // No 'Access-Control-Allow-Origin' header is present on the requested resource.
- // Origin 'http://localhost:9000' is therefore not allowed access.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement