I have added CSP to my webapp like this:
add_header Content-Security-Policy upgrade-insecure-requests;
add_header Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()";
Almost all the places worked fine except that there is a page that returns
Failed to load resource: the server responded with a status of 406 () chrome-error://chromewebdata/
This error happens when using google chrome but works fine with Firefox.
I am not too sure what is wrong here
So I'm trying to serve my github pages website to https://dgatto.github.io/website/ and i keep getting these errors
Failed to load resource: the server responded with a status of 400 ()
manifest.json:1 Failed to load resource: the server responded with a status of 400 ()
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
I think that the 400's are because of the "syntax error" and I'm pretty sure that the syntax error is because of the manifest.json file being read as text/html in the network tab.
My question is, how do I change the server to accept the file as json? It's github pages so I don't really have access to the server itself.
Here's the repo if that helps: https://github.com/dgatto/website
Since you are serving your Application at https://dgatto.github.io/website/, you should define it as the homepage in your package.json file and then build.
I tried to use angular-chart. I've put Chart.min.js before angular-chart.min.js. Also I've checked those file at my root project. This is the dependency:
<script src="/bower_components/chart.js/dist/Chart.min.js"></script>
<script src="/bower_components/angular-chart.js/dist/angular-chart.min.js"></script>
But it produces an error:
(index):72 GET
http://localhost:5000/bower_components/chart.js/dist/Chart.min.js 404
(Not Found) (index):74 GET
http://localhost:5000/bower_components/angular-chart.js/dist/angular-chart.min.js
404 (Not Found)
Hi guys i hope some one could help me with my problem
When i open my web page on local computer everything works just fine i can see the images, but as soon as i upload my web page to a server i dont see the images.
All file locations are correct, all file names are correct, i've checked the file permissions, css file linked properly, images set relativly to css file.
i've JSFiddled the code and it works fine: http://jsfiddle.net/ySm2x/
But it just won't show up in my web site - heres a link to my web site, the images should show under the "Coming Soon" text : http://www.voskitag.com
What can be the problem?
Here are example HTML&CSS codes i used:
HTML CODE:
<div class="social" height="40">
<a class="example" href="#" target="_blank">Example</a>
</div>
CSS Code:
.social {
text-align: center;
height: 40px;
width: auto;
}
.example {
display: inline-block;
width: 40px;
height: 40px;
background-image: url(image/url/relative/to/css/file);
text-indent: -99999px;
}
.example:hover {
background-position: 0 -40px;
}
The css you have attached is correct, so it seems the image paths are not correct (or also a permission problem). May be you must check again that those paths are correct. Firebug shows that they are problems (404 not found) with those images:
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/instagram.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/twitter.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/youtube.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/vimeo.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/googleplus.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/tumblr.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/flickr.png
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.voskitag.com/icons/pinterest.png
Are you sure that the paths to the images are correct?
I dont know how to solve your problem. But if i try to get your pictures like this
http://www.voskitag.com/icons/googleplus.png
I get the following error (maybe this helps):
[www.voskitag.com] [Mon Oct 14 22:30:52 2013] [error] [client 92.106.149.238] Premature end of script headers: f403.php
Error 500: Script Execution Failure
Description: The server encountered an internal error or misconfiguration and was unable to complete your request.
Most common reasons for returning this error message are:
• File Upload Mode
When you upload Perl, CGI scripts via FTP you should use always ASCII mode. If you get "Error 500: Script Execution Failure" you should check whether your FTP client uses ASCII mode when uploading your scripts, because if it uses BINARY mode to upload your scripts they won't work on the server. The problem caused by wrong upload mode is associated with the way different operating systems handle the "end of line" character. Unix system uses a "line-feed" (LF), Windows uses a "carriage-return" (CR) and "line-feed" (LF) pair. That's why it is very important that you set the uploading mode to ASCII.
• File Permissions
When you upload scripts via FTP the file permissions are set by default to 755. If you get "Error 500: Script Execution Failure" you should check whether your scripts have 755 permissions. Otherwise your scripts have lower level of permissions and does not support execution upon request. The octal representation of the 755 permission is equal to the following textual format: -rwxr-xr-x
Most FTP clients support the CHMOD command which is used for setting file permissions. In case you have set improper permissions to your scripts, use your FTP client and set "Read, Write, Execute" permissions for the owner, "Read, Execute" permissions for the group and everyone else.
• Script Errors
This is the third well known reason for getting "Error 500: Script Execution Failure" upon execution of your scripts. Check your scripts for any obvious syntax or programming errors to make sure your code is not broken.
Remember: When you get a "Error 500: Script Execution Failure", you should always check for any file uploading problems (ASCII/BINARY) and the executable permission settings. Once those are checked and verified, it looks like there is a syntax error or some other problem in the script.
Ok i found out what happened... For some reason when you use 'icons' folder in the root server folder it calls for problem, it leads to some weird icons list and it blocks you from using your own images, i've changed its name and walla everything works as it should of work.
I have a problem which I have no clue how to solve. I have a joomla site which looks like working perfect (http://secretinvizimals.com/). There is only one page which fails - my add new article page.
Here is a link to my problem: http://secretinvizimals.com/index.php/contribute
You might need to login first with these credentials: Username: StackOverflow password: StackOverflow
you can log in on the mainpage at the top: http://secretinvizimals.com/
Just very short: The problem is that the page comes out with no style:
Does anyone have an idea of where I can start with this - or maybe a solution?
Here comes some faqs about my joomla site:
Joomla version 2.5.7
Custom theme developed in Artisteer 4.0
I hope you can help me.
BR
Firebug/Chrome Developer Tools state that your missing the editor.css file. Which is the style sheet for editing stuff. The link its looking for it is here:
http://secretinvizimals.com/index.php/skins/kama/editor.css?t=C3HA5RM
Although there is no file there - judging by the other links I'm guessing this was an old template or something?? You either need to change the file location if it does exist in another location or you need to create a file for it and put in the standard stuff.
Chrome developer tools is also finding half a dozen errors
<error> index.php:1
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/config.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/skins/kama/editor.css?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/lang/en-gb.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/linkBrowser/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/mediaembed/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/plugins/readmore/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/plugins/tableresize/plugin.js?t=C3HA5RM
Failed to load resource: the server responded with a status of 404 (Not Found) http://secretinvizimals.com/index.php/plugins/autogrow/plugin.js?t=C3HA5RM
Uncaught [CKEDITOR.resourceManager.load] Resource name "linkBrowser" was not found at "http://secretinvizimals.com/index.php/../plugins/linkBrowser/plugin.js?t=C3HA5RM". index.php:1519
Uncaught RangeError: Maximum call stack size exceeded (x10)
Uncaught RangeError: Maximum call stack size exceeded index.php:1654 (x2)
Uncaught RangeError: Maximum call stack size exceeded (x6)
Uncaught RangeError: Maximum call stack size exceeded index.php:1654 (x2)
Uncaught RangeError: Maximum call stack size exceeded (x6)
The initial one being to do with the fact there is no doctype, html declaration or anything at the top of your page. Which is a bit more confusing. I'd have to assume that this was some kind of template issue. But obviously its a lot harder to test something like that from the outside access. Have you tried turning on the Joomla debug feature to see whats going on?