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