javascript - HTML DOCTYPE Syntax error on js files -
i have 5 errors on login page syntaxerror: syntax error <!doctype html>
on 5 js files, when checked files, found in non public directory.
how can ignore these files on login page or add authorization these 5 files ?
thanks
there several things do:
if need files on login-page:
- move files public folder
- add location section web.config make folder public
if don't need them on login-page:
make sure don't reference files if user not authenticated. example in view:
@{ if (user.identity.isauthenticated){ <text><script src="..." /></text> } }
Comments
Post a Comment