DrRman
March 28, 2023, 4:13am
1
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:
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
DrRman
March 28, 2023, 7:23pm
4
I tried adding it, but I still don’t have any luck. I tried doing this as well:
1 Like
DrRman
March 28, 2023, 10:38pm
6
Yeah. I updated my code to use the flask-cors library, and it worked perfectly. Thank you for your input!
4 Likes
DrRman:
flask-cors library
In the future, I hope you realize you can just use a header, instead of installing a entire library.
2 Likes
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
DrRman
March 29, 2023, 12:11am
10
OK. How do I add a header in my code?
2 Likes
9pfs1
March 29, 2023, 12:12am
11
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:
python, flask
3 Likes
DrRman
March 29, 2023, 12:15am
13
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
system
Closed
April 5, 2023, 12:31am
15
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.