jisujit
January 11, 2022, 11:13pm
1
After starting Vault server in dev mode, when trying to access http://127.0.0.1:8200 get a blank screen
behavior is same in Chrome, Edge and Firefox
In Chrome (using developer tools), see the following error
“Refused to execute script from ‘http://127.0.0.1:8200/ui/sw-registration-1b862bc1e33e4a8a41781d56c3469209.js ’ because its MIME type (‘text/plain’) is not executable, and strict MIME type checking is enabled.”
Any help or guidance is appreciated
SG
aram
January 12, 2022, 12:04pm
2
There are various threads in this forum that are related to this. It’s a strict mime check issue.
There is a link in this discussion:
tested issue happened on win10 without visualstudion 2022. It’s a web security setting issue which you can update your registry as following mentioned as a workround.
@Aram ,
Thank you for pointing me to the solution referred to in that post. I tried all of the suggestions there, but have not been successful.
Really appreciate your taking time to respond.
I am still continuing to research a fix for the issue
Any help/recommendation is appreciated.
jisujit
January 15, 2022, 12:03am
4
Hello
Just wanted to give an update on the issue. My issue has been resolved . Here is what I had to do
I had to change the content type from text/plain to application/javascript at 2 locations in the windows registry. (screenshot included)
HKEY_CLASSES_ROOT.js
HKEY_LOCAL_MACHINE\SOFTWARE\Classes.js
Steps to make the change
Part1
Open the Windows Registry Editor i.e Win + R > regedit
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.js
Check to if the Content Type is application/javascript
or not (it may say text/plain)
If not, then change it to application/javascript
Part2
Navigate to HKEY_CLASSES_ROOT\.js
Check to if the Content Type is application/javascript
or not (it may say text/plain)
If not, then change it to application/javascript
and try again
NOTE: If the Content Type key is not present under the .js folder,
Right click on the folder → New–>Key and add the Content Type Key
Then “Modify” the key to add the value of "application/javascript
1 Like