Skip to content

Commit

Permalink
chore: Use prefix.cc proxy to work with HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie committed Oct 9, 2023
1 parent 39bed77 commit 420bad5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ export default class IndexController extends Controller {
async replacePrefixInBinding(binding) {
// Do call to prefix.cc to get the full URI
const [prefix, suffix] = binding.split(':');
const response = await fetch(`https://prefix.cc/${prefix}.file.json`);
const response = await fetch(
`https://prefixcc-proxy.smessie.com/${prefix}.file.json`
);
const json = await response.json();
const uri = json[prefix];
if (uri) {
Expand Down

0 comments on commit 420bad5

Please sign in to comment.