LphsBandAdmin
09-05-2022
12:07 PM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
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:
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!
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
0 REPLIES 0