Extension manifest not working in Flask

I created this File Navigator extension, which uses Python’s Flask to serve the static pages. However, I could not add a manifest to it, and I get an error saying “Failed to load extension manifest”. I also tried LuisAFK’s Replit Extension Manifest Checker, and it says:

Missing manifest.icon
Invalid manifest.website: must be a valid URL
Missing manifest.longDescription

Extension icon:
Cover images:

image

To reproduce this, add an extension by URL and paste in “https://File-Navigator.drrman.repl.co”.

Does anyone have any advice on how to fix these errors?

1 Like

That Repl doesn’t have an extension.json file…

2 Likes

I’ve updated my manifest checker. But the error is that the version field is a WIP and can only be zero for now.

2 Likes

I tried adding it, but I still don’t have any luck. I tried doing this as well:
image

1 Like

Might be a CORS issue?

5 Likes

Yeah. I updated my code to use the flask-cors library, and it worked perfectly. Thank you for your input!

4 Likes

In the future, I hope you realize you can just use a header, instead of installing a entire library.

2 Likes

Wait, what do you mean?

1 Like

You just needed to add this header to your response: Access-Control-Allow-Origin - HTTP | MDN

No need for the library, as CORS is enabled by default on most browsers.

2 Likes

OK. How do I add a header in my code?

2 Likes

Check the flask documentation.

2 Likes

Next time, as @9pfs1 said, just check the docs or google. But here you go for the google answer:

3 Likes

Oh, I understand now. Thank you so much.

2 Likes

Darn, you got marked as the solution when I mentioned CORS first. Though I suppose you were more helpful =P

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.