SE NECESITA DEVELOPER / DEVELOPER NEEDED: Apache / Angular / Node required
Budget: $10 – $30 USD
Node/apache/angular developer needed.
1 day job
Especificaciones del problema:
El sitio funciona bajo el dominio xxx.org. El front esta codificado en angular y se configuró un proxi.conf.json con los cors permitidos, lo cual se especifica en el package.json con la siguiente linea en start: "ng serve --proxy-config proxy.conf.json".
En el subdominio api.xxx.org se encuentra corriendo la api la cual esta codificada en node.js con express, donde se configuran los cors con el siguiente codigo:
"const cors= require('cors')
var corsOptions = {
origin:'*',
optionsSuccessStatus:200,
methods: "GET, PUT, POST, DELETE"
}
app.use(cors(corsOptions));
"
y queda corriendo como https especificando los certificados del subdominio del sitio.
Ambos se encuentran en el mismo hosting
Todo el ditio funcionaba sin ningun inconveniente y sin que se altere el codigo pero ahora se bloquea por error de cors
Lo hariamos mediante zoom por temas de seguridad.
Si requiere mas informacion, por favor preguntar.
Problem especifications
We need help to solve a Cors problem.
The website runs under a .org domain.
The front is coded in angular and a proxi.conf.json has been configured, with the cors alowed. This has been especificated on the package.json with the folowing code line in start: "ng serve --proxy-config proxy.conf.json".
The api coded on node.js, with express, is runing on the subdomain api.xxx.org, where the cors where configurated with the folowing code:
"const cors= require('cors')
var corsOptions = {
origin:'*',
optionsSuccessStatus:200,
methods: "GET, PUT, POST, DELETE"
}
app.use(cors(corsOptions));
"
The app runs under https especificing the certificates of the subdomain of the website.
Both are on the same hosting.
The site was working ok on an inmotion hosting, but it stoped working because of a cors error without any change made on the code.
For security matters it would be done by zoom.
Spanish languaje prefered.
If you need more info, please ask!
1 day job
Especificaciones del problema:
El sitio funciona bajo el dominio xxx.org. El front esta codificado en angular y se configuró un proxi.conf.json con los cors permitidos, lo cual se especifica en el package.json con la siguiente linea en start: "ng serve --proxy-config proxy.conf.json".
En el subdominio api.xxx.org se encuentra corriendo la api la cual esta codificada en node.js con express, donde se configuran los cors con el siguiente codigo:
"const cors= require('cors')
var corsOptions = {
origin:'*',
optionsSuccessStatus:200,
methods: "GET, PUT, POST, DELETE"
}
app.use(cors(corsOptions));
"
y queda corriendo como https especificando los certificados del subdominio del sitio.
Ambos se encuentran en el mismo hosting
Todo el ditio funcionaba sin ningun inconveniente y sin que se altere el codigo pero ahora se bloquea por error de cors
Lo hariamos mediante zoom por temas de seguridad.
Si requiere mas informacion, por favor preguntar.
Problem especifications
We need help to solve a Cors problem.
The website runs under a .org domain.
The front is coded in angular and a proxi.conf.json has been configured, with the cors alowed. This has been especificated on the package.json with the folowing code line in start: "ng serve --proxy-config proxy.conf.json".
The api coded on node.js, with express, is runing on the subdomain api.xxx.org, where the cors where configurated with the folowing code:
"const cors= require('cors')
var corsOptions = {
origin:'*',
optionsSuccessStatus:200,
methods: "GET, PUT, POST, DELETE"
}
app.use(cors(corsOptions));
"
The app runs under https especificing the certificates of the subdomain of the website.
Both are on the same hosting.
The site was working ok on an inmotion hosting, but it stoped working because of a cors error without any change made on the code.
For security matters it would be done by zoom.
Spanish languaje prefered.
If you need more info, please ask!