Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular static resource js&css issues #181

Open
towardsfuture opened this issue May 31, 2018 · 5 comments
Open

Angular static resource js&css issues #181

towardsfuture opened this issue May 31, 2018 · 5 comments

Comments

@towardsfuture
Copy link

While request static js&css(eg. main.js,polyfills.js etc) from ui. The url of main.js is not 'http://localhost:8080/ui/main.js' but 'http://localhost:8080/main.js'.

@dsyer
Copy link
Collaborator

dsyer commented Jul 11, 2018

Correct. Is there a an error in the text somewhere?

@towardsfuture
Copy link
Author

Because the new angular compiled file's name not composed with 'bundle' any more.

@dsyer
Copy link
Collaborator

dsyer commented Jul 11, 2018

That seems like a different issue?

@towardsfuture
Copy link
Author

Yes,it cause by the new angular version.

@matohl
Copy link

matohl commented Oct 9, 2018

Just update the method ignoring static resources from authentication to:

      @Override
   public void configure(WebSecurity web) throws Exception {
       web.ignoring().antMatchers("/favicon.ico",
               "/polyfills.js*",
               "/runtime.js*",
               "/styles.js*",
               "/scripts.js",
               "/main.js*",
               "/vendor.js*"
       );
   }


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants