mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
- Add CORS https://enable-cors.org/server_meteor.html
- Add missing LDAP and TIMER environment variables. Thanks to xet7 ! Closes wekan/wekan-snap#69
This commit is contained in:
parent
fa6b2e5679
commit
b788deb002
10 changed files with 464 additions and 310 deletions
11
server/cors.js
Normal file
11
server/cors.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Meteor.startup(() => {
|
||||
|
||||
if ( process.env.CORS ) {
|
||||
// Listen to incoming HTTP requests, can only be used on the server
|
||||
WebApp.rawConnectHandlers.use(function(req, res, next) {
|
||||
res.setHeader('Access-Control-Allow-Origin', process.env.CORS);
|
||||
return next();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue