Express-subdomain is simply express middleware/package for dealing with subdomain routes.
Questions tagged [express-subdomain]
6 questions
1
vote
1 answer
Wildcard Subdomain help needed
I want to dynamically create subdomain sites such as "user1.example.com", "user2.example.com" and serve static html and css based on subdomain. For a real world example blogger.com servers html and css for different users on blogspot domainl link…

Chetan Jain
- 236
- 6
- 16
1
vote
0 answers
subdomain of localhost is not working with express-subdomain
I created a test app for using subdomains.
it is not woking. when get api.localhost:3000 it shows localhost:3000...
index.js:
var subdomain = require('express-subdomain');
var express = require('express');
var app = express();
var router =…

bahoz99
- 121
- 1
- 6
1
vote
1 answer
Routing of express-subdomain
I'm using express-subdomain.
The router that handles requests through a subdomain is the same as the router that handles requests without a subdomain.
I know that my 'app.js' setting is wrong.
How can I solve this problem? I want to know a good way.…

useeffect
- 59
- 1
- 5
0
votes
0 answers
Is there a way to share express-session through express-subdomains?
I just simply configured the express-session middleware and express subdomains, but when I login on accounts.example.com I am not being logged in in example.com or any other *.example.com
I tried to use cookieParser with cookieSession but it didn't…

Hayk Markosyan
- 1
- 1
0
votes
0 answers
using a subdomain as api in nodejs
I want to send a request to api as a subdomain like so :
https://api.example.com
So I have this in server js:
const express = require('express');
const app = express();
const subdomain = require('express-subdomain');
app.use(subdomain('api',…

Sara Ree
- 3,417
- 12
- 48
0
votes
0 answers
Handling all routes except subdomain in express-subdomain
I'm using express-subdomain for handling subdomains of my site.
I have these two: www.mysite.com and blog.mysite.com and I want to handle their corresponding requests separately so that they don't have access to each other's…

HTB
- 413
- 1
- 9
- 22