fix: enforce representation blob ownership and secure SSR access
This commit is contained in:
@@ -89,8 +89,8 @@ const loadServiceModule = (fileName, injected = {}) => {
|
||||
return injected.axios(config).then((response) => response.data);
|
||||
};
|
||||
|
||||
const defaultGetFileJson = (url) => {
|
||||
return defaultGetJson(url);
|
||||
const defaultGetFileJson = (url, config) => {
|
||||
return defaultGetJson(url, config);
|
||||
};
|
||||
|
||||
const defaultBuildHashedQueryUrl = async (queryUrl) => {
|
||||
@@ -207,8 +207,14 @@ const loadServiceModule = (fileName, injected = {}) => {
|
||||
module: { exports: {} },
|
||||
exports: {},
|
||||
require,
|
||||
URL,
|
||||
URLSearchParams,
|
||||
encodeURIComponent,
|
||||
process: injected.process || {
|
||||
env: {
|
||||
NEXTAUTH_URL: "http://example.local"
|
||||
}
|
||||
},
|
||||
FormData: global.FormData,
|
||||
console: {
|
||||
log: () => {},
|
||||
|
||||
Reference in New Issue
Block a user