Questions tagged [http-equiv]

The 'http-equiv' attribute for the HTML 'meta' element makes the element a pragma directive that as the same effect as whatever HTTP header has the same name as the attribute’s value; e.g., Content-Type or Content-Security-Policy.

See https://html.spec.whatwg.org/multipage/semantics.html#pragma-directives

48 questions
9
votes
2 answers

Why is delivery of Content-Security-Policy via headers "preferred"?

At 3. CSP Policy Delivery it says The Content-Security-Policy HTTP response header field is the preferred mechanism for delivering a policy But there are two valid mechanisms, delivery via an HTTP header, and delivery via a HTML meta…
5
votes
3 answers

Declaring character encodings in HTML

Should I declare charset like this: or like this: Or are both valid?
Menel
  • 177
  • 1
  • 9
3
votes
1 answer

Is an empty meta refresh tag ignored or equivalent to 0?

I am working on a site where every page has this tag in the head: The site's CMS has a meta refresh field you can set if needed, but it's not set, so this dummy refresh tag shows up on every page. Does the…
Jannette
  • 43
  • 4
3
votes
0 answers

mod_proxy_html and Apache 2.2.29: parse all and turn them in real http headers

I'm using Mamp 3 (pro) on Mac OS X Yosemite 10.10; I'v already compiled and installed mod_proxy_html (3.1.2) and mod_xml2enc, they are both correctly loaded by Apache 2.2.29 without issues. This is my typical html file:
G.S.
  • 51
  • 4
3
votes
1 answer

Are there HTML5 compliant alteratives to the http-equiv Cache-Control and Pragma directives?

I am updating the HTML of a site to be HMTL5 compliant. The existing site has the following two meta http-equiv elements: Cache-Control Pragma Are these two HTML5 compliant? If not, what should I replace these with in order to make my site HTML5…
2
votes
1 answer

remove http-equiv="refresh" via javascript

so I got a problem I`ve got a HTML Page which is generated by a programm (So not possibly to change it by hand). This got the meta Because of this the iframe in which I embed it, keeps…
Jamie
  • 21
  • 2
2
votes
1 answer

HTML Redirect Dependent on Device Type

I have a very simple webpage: Instead of this always redirecting to the same website, I would like to redirect to either website1…
Josh Gafni
  • 2,831
  • 2
  • 19
  • 32
2
votes
5 answers

X-Frame-Options is not working in meta tag?

I want to restrict my site content to be used in other domains through iframe control. The recommented meta tag i.e is not working. What can i do?
VR Patel
  • 61
  • 1
  • 1
  • 11
2
votes
2 answers

What exactly does the http-equiv value 'Content-Security-Policy' do?

I'm creating a mobile application using Apache Cordova/Adobe Phonegap, and this code snippet was automatically generated. It's giving me this error in the Console inside Google Chrome. Refused to load the stylesheet …
CloudBranch
  • 1,434
  • 3
  • 18
  • 23
2
votes
0 answers

auto download pdf file after multiple HTTP redirect

A/38/7/CORR.1(SUPP) I want to download all the pdf files in this page: [http://search.un.org/?query=A&searchTrigger=%E6%90%9C%E7%B4%A2+ODS&SS=DS&tpl=ods&lang=zh-cn] One sample link is : A/38/7/CORR.1(SUPP) . This link will redirect two times to the…
deepblue
  • 21
  • 3
1
vote
1 answer

How can I reach routed components within my React SPA, while maintaining proper CSP?

I cannot manually navigate to my react-router-dom Routes by typing them into the address bar (like: localhost:8080/notfound). However, I can reach the desired location by following the instantiated RRD Link. Instead, I receive "Content Security…
1
vote
1 answer

http-equiv redirect to another html page

I am trying to redirect a user on my html page to another html page automatically after three seconds, and I am trying with this code: However, I get the error that it expected a "u" after ";"…
1
vote
0 answers

Getting the 'Content' Redirected URL from the Original URL in C#

Looking to get final redirect on case redirect is on content.
1
vote
0 answers

Avoid http-equiv tags

can be avoid and replace this by and what is the best replacement for My concern is to remove…
1
vote
0 answers

In Eclipse Rap 4.0, how to add meta http-equiv in head

I'm trying to allow mixed content from an iframe in an Eclipse Rap application. It should work using a http-equiv meta in an like this:
1
2 3 4