meta-tags

Resource interpreted as other but transferred with MIME type text/javascript?

北城余情 提交于 2019-12-02 18:01:31
I keep getting " Resource interpreted as other but transferred with MIME type text/javascript. ", but everything seems to be working fine. This only seems to be happening in Safari 4 on my Mac. I was advised to add "meta http-equiv="content-script-type" content="text/javascript" to the header, although that did nothing. The most common way to get the error is with the following code: <img src="" class="blah" /> A blank url is a shortcut for the current page url, so a duplicate request is made which returns content type html. The browser is expecting an image, but instead gets html. i received

Why CSRF token should be in meta tag and in cookie?

ぐ巨炮叔叔 提交于 2019-12-02 17:31:38
What's the need of to put CSRF token name and value inside <head> tag using <meta> like: e.g: <meta content="authenticity_token" name="csrf-param" /> <meta content="4sWPhTlJAmt1IcyNq1FCyivsAVhHqjiDCKRXOgOQock=" name="csrf-token" /> I've read about concept to keep CSRF value in cookie but does not find about why to keep inside <head> tag. To prevent CSRF you need a value that is submitted with the request that cannot be sent by a malicious site. Authentication cookies are not suitable because if an attacker can make the browser send a request to the victim site, the cookies will automatically

HTML <head> best practices [closed]

故事扮演 提交于 2019-12-02 16:42:20
There are <meta> tags and other things you can place in the <head> of your HTML document. What <meta> tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc. andyk In my case: Title (should do [Section Name - Site Name] for better SEO) Meta tag for Content-type , description , and keywords Link to stylesheet(s) (don't forget to specify the media="" ). <script> tag that links to external javascript files. All tags should follow the W3C's standard. The W3C site has a more technical and detailed section about the HTML <head>

What is the attribute property=“og:title” inside meta tag?

邮差的信 提交于 2019-12-02 15:45:07
I have this extract of website source code: <meta content="This is a basic text" property="og:title" /> What does this property attribute stand for, and what is its purpose? og:title is one of the open graph meta tags. og:... properties define objects in a social graph. They are used for example by Facebook. og:title stands for the title of your object as it should appear within the graph (see here for more http://ogp.me/ ) The property in meta tags allows you to specify values to property fields which come from a property library. The property library (RDFa format) is specified in the head

Web app on android browser WIDTH issue

与世无争的帅哥 提交于 2019-12-02 15:03:15
问题 So I've only experienced this issue on the Android browser so far. Basically my site works fine almost all the time (and I've not seen the problem yet on Dolphin, Opera or Skyfire) but occasionally when I reopen the Android browser from a bookmark on one of my phone's homescreens my site appears stretched horizontally, so now I only see the first 2/3 of the left hand side. Its' as though the browser just lost the CSS or the meta information while it was minimized. Here are my meta tags, and I

getting meta tags info using curl and get_meta_tags()

大憨熊 提交于 2019-12-02 12:20:00
is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php? specifically to get the meta tags of an external site using curl in php with the least amount of overhead possible Pekka 웃 is there a way to use curl such that you can do something that is equivalent to the get_meta_tags() function in php Nope, I don't think so. The best way would be to fetch the data, and parse it using a HTML parser . Alternatively, there are several regex based approaches in the user contributed notes in the manual. function file_get_contents_curl($url) { $ch

How to add meta description in hybris?

泄露秘密 提交于 2019-12-02 11:14:25
问题 screen shotI can see the place where I can add meta title but unable to see any meta description column. 回答1: You can debug the ProductPageController there you can see how metaDescription being set. In Hybris OOTB(I'm referring 6.7), meta description being set using product description. So you need to check the same in your codebase. If you haven't customized that part so far then tries setting product description and check. ProductPageController final String metaKeywords = MetaSanitizerUtil

Web app on android browser WIDTH issue

浪子不回头ぞ 提交于 2019-12-02 08:15:32
So I've only experienced this issue on the Android browser so far. Basically my site works fine almost all the time (and I've not seen the problem yet on Dolphin, Opera or Skyfire) but occasionally when I reopen the Android browser from a bookmark on one of my phone's homescreens my site appears stretched horizontally, so now I only see the first 2/3 of the left hand side. Its' as though the browser just lost the CSS or the meta information while it was minimized. Here are my meta tags, and I'm using width 100% in my table styles. <meta http-equiv="Content-Type" content="text/html; charset=utf

iOS 9 Safari Viewport bug

老子叫甜甜 提交于 2019-12-02 04:33:56
问题 I'm working on the iPad version of a web project and am using Safari's web inspector to work with CSS layout etc. However I've tracked my bug to the viewport meta tag. When an iPad Air with iOS 9.0 - 9.2 is in portrait mode the viewport meta rules are broken/ignored. Here is a screenshot of the issue from an iPad air iOS 9.2: The Problem: When in portrait the computed width for the html and body tag is 768px yet there is a white space to the right that is about 300px. Also user-scalable=no