.htaccess bugged my site

Website

https://barmajet.com/

Error Message

image

Other Information

I just did try this code in .htaccess then refreshed the site getting this.
My website is a flutter project build with dart

<ifModule mod_headers.c>
    SetEnvIf Origin "http(s)?://(www.)?(localhost:55538|somedomain.com)$" AccessControlAllowOrigin=$0
    Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
    Header always set Access-Control-Allow-Methods: "GET,POST,PUT,DELETE,OPTIONS"
</ifModule>    

FontManifest.json file is missing, please upload it.

5 Likes

Thank you so much its is working now,
but this normal in the console?
image

If you get a CORS/CORB error on https://infinityfree.net/errors/404/, it means that some URL on the page redirects to a non-existent URL, which makes it go to our 404 Page Not Found error.

Given that it complains about the file manifest.json afterwards, maybe that file is missing too?

2 Likes

I checked the url on console, it shows the AES.js code, the file itself isn’t missing.

2 Likes

Thanks to you both, You were right there is a missing file, seems that uploading in file manager not catching all file with drag-drop, also not extracting a zip but I came over that manually.

Now website console is showing

manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

Going to testing that on my code it might not be related to infinityfree.net

2 Likes

@DasserBasyouni
I guess it is because of security system, i suggest you to use cloudflare which can fix that issue.

6 Likes

Thanks, I misunderstood your reply previously, is it okay if I managed to delay this security issue or it’s crucial to do it as soon as possible?

It’s my first time to deploy a website, I lack some info, so any hints would be awesome to read and learn from.

It depends. Like what are the contents and such. But, get it done quick.

1 Like

Nop… File manifest.json wont load. I’ve tried it… Even if i can open it on a separate page, when the browser loads it on the Applications tab on the Developer Tools, it shows this error. Upon attempting to obtain the file, the request returned “This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support”. That’s why there is an error at line1 like “Manifest: Line: 1, column: 1, Syntax error” says.

But isn’t it already enabled by default in chrome?

My browser settings

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