Please help for my problem I’m new in django programming, my rpoblem is when I use localhost can direct to dashboard but when I use Local IP got error message and still in login menu,bellow is error message from console:
The Cross-Origin-Opener-Policy header has been ignored, because the URL’s origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the ‘localhost’
Refused to execute script from ‘http://192.168.0.81:8000/static/vendor/libs/%40form-validation/umd/plugin-bootstrap5/index.min.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
for setting.py
ALLOWED_HOSTS = [‘192.168.0.81’, ‘localhost’, ‘127.0.0.1’]
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
STATIC_URL = ‘/static/’
STATIC_ROOT = BASE_DIR / ‘staticfiles’
MEDIA_URL = ‘/media/’
MEDIA_ROOT = BASE_DIR / ‘media’