subdomain

AJAX, Subdomains, and SSL

倾然丶 夕夏残阳落幕 提交于 2019-11-26 12:43:27
问题 I have a site, foo.com, that makes ajax requests to bar.foo.com. Will this work. Also, if foo is a secure connection, https, does bar.foo.com need to be https too? Can these two sites use different certificates? 回答1: With plain-http AJAX: You are talking about doing cross-domain XMLHttpRequest, which is not permitted by browsers. There's a W3C proposal pending to implement this in a secure way in the future (partially implemented by IE8, IIRC), but it's definitely not possible at present.

“Could not get any response” response when using postman with subdomain

大憨熊 提交于 2019-11-26 12:16:59
问题 I am using postman to test an API I have, all is good when the request does not contain sub-domain, however when I add a sub-domain to URL I am getting this response. Could not get any response There was an error connecting to http://subdomain.localhost:port/api/ Why this might have happened: The server couldn\'t send a response:Ensure that the backend is working properly Self-signed SSL certificates are being blocked:Fix this by turning off \'SSL certificate verification\' in Settings >

How to set up subdomains on IIS 7

删除回忆录丶 提交于 2019-11-26 10:18:42
问题 I have a website sitting on an IIS 7 server: WWW.example.COM I would like to create several sub domains that looks like SUBDOMAIN1.example.COM I created an IIS website and I set the bindings to be http, port 80, the ip address of my server, and SUBDOMAIN1.example.COM and the physical path to a folder under example.COM I restarted my website and clicked on browse, the browser than opened with the address: http://SUBDOMAIN1.example.COM But the website doesn\'t show up. Do I have to do something

HTML5 Canvas getImageData and Same Origin Policy

两盒软妹~` 提交于 2019-11-26 09:45:59
问题 I have a site running at pixie.strd6.com and images hosted through Amazon S3 with a CNAME for images.pixie.strd6.com. I would like to be able to draw these images to an HTML5 canvas and call the getImageData method but it throws Error: SECURITY_ERR: DOM Exception 18 I have tried setting window.domain = \"pixie.strd6.com\" , but that has no effect. Additionally, $.get(\"http://dev.pixie.strd6.com/sprites/8516/thumb.png?1293830982\", function(data) {console.log(data)}) also throws an error:

What does Rails 3 session_store domain :all really do?

删除回忆录丶 提交于 2019-11-26 08:46:32
问题 Updated question to make it more clear I understand that you can set the domain of your session_store to share sessions between subdomains like this: Rails.application.config.session_store :cookie_store, :key => \'_my_key\', :domain => \"mydomain.com\" in Rails 3, what does the setting :domain => :all do? It can\'t let you share sessions across top-level domains, cookies can\'t do that. The documentation says it assumes one top level domain. So what happens if multiple domains access your app

SSL Multilevel Subdomain Wildcard

不问归期 提交于 2019-11-26 07:46:19
问题 I bought a wildcard certificate for *.example.com. Now, I have to secure *.subdomain.example.com. Is it possible to create a sub-certificate for my wildcard-certificate? If it is, how I can do this? 回答1: No, it is not possible. A wildcard inside a name only reflects a single label and the wildcard can only be leftmost. Thus *.*.example.org or www.*.example.org are not possible. And *.example.org will neither match example.org nor www.subdomain.example.org , only subdomain.example.org . But

Can HTML5 databases and localStorage be shared across subdomains?

廉价感情. 提交于 2019-11-26 05:54:03
问题 I am attempting to share data across subdomains using Safari. I would like to use an HTML5 database (specifically localStorage as my data is nothing but key-value pairs). However, it seems as though data stored to domain.com can not be accessed from sub.domain.com (or vice versa). Is there any way to share a single database in this situation? 回答1: Update 2016 This library from Zendesk worked for me. Sample: Hub // Config s.t. subdomains can get, but only the root domain can set and del

HTML5 localStorage size limit for subdomains

假装没事ソ 提交于 2019-11-26 04:47:06
问题 HTML5\'s localStorage databases are usually size-limited — standard sizes are 5 or 10 MB per domain. Can these limits be circumvented by subdomains (e.g. example.com, hack1.example.com and hack2.example.com all have their own 5 MB databases)? And is there anything in the standard that specifies whether parent domains can access their children\'s databases? I can\'t find anything, and I can see arguments for doing it either way, but it seems like there has to be some standard model. 回答1: From

How can I configure multiple sub domains in Express.js or Connect.js

放肆的年华 提交于 2019-11-26 04:32:39
问题 I am used to working on httpd ( Apache ) which provides a way to configure subdomains which is mapped to a directory. How can I do the same thing in Connect.js/Express.js ? I see that the only thing that I have is routes which I am not sure how I can use to configure sub domains. I have subdomains like m.mysite.com, sync.mysite.com Can someone help ? 回答1: Or alternatively you could use vhost . Then, create several sites in their own directory and export the express app, eg. /path/to/m/index

How do I make a custom subdomain on Firebase?

独自空忆成欢 提交于 2019-11-26 04:25:28
问题 I have purchased a domain (\"www.mydomain.com\"). How do I make a subdomain on Firebase (\"sub.mydomain.com\"), if I am using Firebase hosting? 回答1: Update You can now add multiple domains to a single Firebase Hosting site. Domains can either serve site content or redirect to another domain (editable at any time). In addition, you can now use subdomains of the same registered domain on different projects, such as example.com on one project and blog.example.com on another. Visit your hosting