This piece of code is functioning properly:
{html} {head> {**link rel="stylesheet" href="http://localhost:3000/CSS/mystyle.css"**} {/head} {body} {/body} {/html}
However, when I use the same URL in this code, it presents an issue: XMLHttpRequest cannot load "href="http://localhost:3000/CSS/mystyle.css". Origin null is not allowed by Access-Control-Allow-Origin.
$(document).ready(function() { var href = 'http://localhost:3000/CSS/mystyle.css'; $.ajax({ url: href, dataType: 'text/css', success: function(data) { $('\n' + data + '').appendTo("head"); } }); });
I am truly unsure about what the problem could be, as both are making a similar XMLHttpRequest call. Any help would be greatly appreciated. Thank you.