Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  4] [ 1]  / answers: 1 / hits: 162832  / 12 Years ago, sat, november 17, 2012, 12:00:00

I understand that you can set HTTP request headers very easily when making AJAX calls in JavaScript.



However is it also possible to set custom HTTP request headers when inserting an iframe into a page via script?



<iframe src=someURL> <!-- is there any place to set headers in this? -->

More From » iframe

 Answers
4

No, you can't. However you could set the iframe source to some kind of preload script, which uses AJAX to fetch the actual page with all the headers you want.


[#81942] Thursday, November 15, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shekinah

Total Points: 699
Total Questions: 112
Total Answers: 110

Location: Philippines
Member since Sat, Jul 11, 2020
4 Years ago
shekinah questions
Mon, Dec 27, 21, 00:00, 2 Years ago
Tue, Apr 6, 21, 00:00, 3 Years ago
Mon, Dec 28, 20, 00:00, 3 Years ago
Fri, Oct 23, 20, 00:00, 4 Years ago
;