I have a VS project that has http links and a few https links to other domains. The site is hosted by GoDaddy. Once i publish the files, the formatting is totally off. it appears , based on Chrome’s console, all of my http links (css and js files) are making a call to https. the source document has http. i can not figure out what is making this happen.
in the source it says <link href=“../asset…
it works in debug but once published, in the console the same call is “<link href=https://…”
Related
I have self hosting app on ASP.NET Owin, that can show html page with login, password, calls web services and show results from web api. Suddenly I hit to the wall, that any static data .json files responds with 404. It's developed is using PhysicalFileSystem.
Part of appliation bundled with javascript frontend that hosts also inside selfhost. It's only bundle.js and bundle.map for debug. I tried turning off cors. But I can't see any .json file. If I rename it to .txt I see this file.
Please recoommend debug method to trace this issue or may be you know such behavior.
I have some videos hosted on my server and a third-party application using those hosted videos in their web application. I am using the IIS server and provide the URL to access those videos which they(third party) used on their web page as a video source.
The problem is the link I provide them is using HTTP protocol but their application is using HTTPS protocol before chrome update it is working fine. Since the update to Chrome version 80 when they click on the play button the requested link is converted automatically from HTTP to HTTPS and didn't play the video.
To explain it more they have a webpage and on that page, they are using video tag and as a source to that video tag, they are using my hosted video links that use HTTP.
I saw the update about same-site in cookies in new chrome 80 but didn't understand does it needs to be done on my site or the other party.
So my questions are should I change my protocol to HTTPS?
Can I add a cookie through IIS (I know something about URL-Rewrite but don't exactly know what to do)?
Did I need to add a cookie through IIS?
Hopefully I am able to explain it properly. Sorry in advance if it is still ambiguous.
Thanks for help
I've just started studying DocFX. According to its official guide we build content with a command similar to docfx docfx.json --serve and then view the generated site from http://localhost:8080. My question is: if DocFX is a static site generator, why does it serve content via a web server? Why does it not just say click index.html to view the generated site ? Is there a difference?
DocFX does generate static content, however the main index.html page will attempt to load some assets such as table of contents (toc.html) using an XMLHttpRequest from the browser. Such requests will be blocked by the browser if you have loaded the site by opening the index.html page from disk.
If you try, run the F12 dev tools in Chrome (or browser of your choice) and you will see warnings such as:
Access to XMLHttpRequest at 'file:///your-path/_site/toc.html' from
origin 'null' has been blocked by CORS policy: Cross origin requests
are only supported for protocol schemes: http, data, chrome-extension,
edge, https.
As a result, the site really needs to be loaded from a web server over HTTP to get the best result
I have seen this type of question asked but the other way. namely to redirect http to https.
This my scenario. I have a asp.net core app. I deploy it to my test server.
When I view in an eternal browser the js and css etc will not load up. Upon inspection it is redirecting everything to https. I do not want this.
How can i force it to 'stay' with http?
just remove the app.UseHttpsRedirection(); in Configure method in Startup class.
And nothing would be via HTTPS unless explicitly requested.
Goto project properties --> Debug --> uncheck Enable SSL
One more hint:
remove the schema from the URL, so it will load the referenced scripts and css files according the client's URL (http or https)
<script src="//cdn.mysite.com/myscript.js" type="text/javascript"/>
I've got a perfectly functioning wordpress site on Azure AND a main website as different Azure website. I want the main website to be a reverse proxy server so that all the wordpress content is served to the outside world from our main domain.
All the web server jiggering I've done appears to work properly: the browser finds/displays the content and the proxy web server has re-written all the URLs so that 'myblog.azurewebsites.net' is replaced by 'mydomain.com/blog' (I can see that it's all correct when viewing the html page source).
However, there are a few files that the browser can't access, most notably the js files in the wp-includes folder. A 403 Forbidden error is returned.
Why would the original site send the article content but not the js files? Is there something special about the wp-includes folder? Do I need to loosen some permissions on it?
I found this somewhat related discussion, but can't find a way to modify my wp-config.php file so everything works.