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:
Invalid manifest.website: must be a valid URL
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?
That Repl doesn’t have an
I’ve updated my manifest checker. But the error is that the
version field is a WIP and can only be zero for now.
I tried adding it, but I still don’t have any luck. I tried doing this as well:
Yeah. I updated my code to use the flask-cors library, and it worked perfectly. Thank you for your input!
In the future, I hope you realize you can just use a header, instead of installing a entire library.
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.
OK. How do I add a header in my code?
Check the flask documentation.
Next time, as @9pfs1 said, just check the docs or google. But here you go for the google answer:
Oh, I understand now. Thank you so much.
Darn, you got marked as the solution when I mentioned CORS first. Though I suppose you were more helpful =P
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.