Added CORS configuration
This commit is contained in:
@@ -19,6 +19,20 @@ export default class ApiService extends Service {
|
|||||||
whitelist: ["**"],
|
whitelist: ["**"],
|
||||||
use: [],
|
use: [],
|
||||||
mergeParams: true,
|
mergeParams: true,
|
||||||
|
cors: {
|
||||||
|
origin: "*",
|
||||||
|
methods: [
|
||||||
|
"GET",
|
||||||
|
"OPTIONS",
|
||||||
|
"POST",
|
||||||
|
"PUT",
|
||||||
|
"DELETE",
|
||||||
|
],
|
||||||
|
allowedHeaders: ["*"],
|
||||||
|
exposedHeaders: [],
|
||||||
|
credentials: false,
|
||||||
|
maxAge: 3600,
|
||||||
|
},
|
||||||
|
|
||||||
authentication: false,
|
authentication: false,
|
||||||
authorization: false,
|
authorization: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user