Temporarily disable CORS as nginx does weird stuff
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -2,9 +2,10 @@ import TableEntry from "../models/TableEntry";
|
||||
|
||||
export default class UserStatsService {
|
||||
|
||||
private apiURL = '/api/stats'
|
||||
private apiURL = 'https://api.tsotr.humenius.me/api/stats'
|
||||
|
||||
private requestInit: RequestInit = {
|
||||
mode: "no-cors",
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
module.exports = function(app) {
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: 'https://api.tsotr.humenius.me',
|
||||
changeOrigin: true,
|
||||
})
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user