2

I need to serve a file, apple-app-site-association with application/json content type.

I throw the file to my tomcat server ROOT and it seems to work but not the right content type. I found I can specify content-type for any file extensions in the web.xml:

in web.xml
    ...
      <mime-mapping>
        <extension>xxx</extension>
        <mime-type>application/json</mime-type>
      </mime-mapping>
    ...
    </web-app>

But this seems only work if the file has an extension :-(. How do I do for this file only: "apple-app-site-association"?

Sean
  • 2,967
  • 2
  • 29
  • 39

0 Answers0