x

HTTP Request Headers

How does one add an HTTP Request Header to a Weebly page? 

I have a page with an embedded code block containing an ajax call to a google sheet:
 
<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script>
$.ajax({
dataType: 'json',
url: 'https://docs.google.com/spreadsheets/d/1jfRPGrdQ2moq9zpleclI2BNlwgSeQfcBfh7_A5pXfE8',
success: function () {
}
});
</script>

This is the result:

image

I would like to add an HTTP header for Access-Control-Allow-Origin "*" to my Weebly page to allow the ajax call to succeed.

Thanks in advance for any help that can be offered!

436 Views
Message 1 of 1
Report
0 REPLIES 0