Skip to content

Commit 82f274f

Browse files
ioedeveloperAniket-Engg
authored andcommitted
Use Remix Cors
1 parent ac2716a commit 82f274f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/noir-compiler/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = composePlugins(withNx(), (config) => {
6464

6565
config.plugins.push(
6666
new webpack.DefinePlugin({
67-
'fetch': `((...args) => args[0].href && (args[0]).href.startsWith('https://github.com') ? fetch('https://api.allorigins.win/raw?url=' + args[0].href) : fetch(...args))`,
67+
'fetch': `((...args) => args[0].href && (args[0]).href.startsWith('https://github.com') ? fetch('https://common-corsproxy.remixproject.org/?proxy=' + args[0].href) : fetch(...args))`,
6868
})
6969
)
7070

0 commit comments

Comments
 (0)