skip to Main Content

thymeleaf: Static resources are not loading in while using layouts – Twitter bootstrap

My directory structure is Directory structure src/ main/ resources/ static/ CSS/ JS/ images/ template/ fragments/ header.html footer.html navBar.html layouts/ appLayout.html baseLayout.html welcome.html appLayout.html <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"> <head> <link rel="stylesheet" type="text/css" media="screen, projection" href="/static/css/bootstrap.css" th:href="@{/bootstrap.min.css}" /> <link rel="stylesheet" type="text/css"…

VIEW QUESTION

Spring Boot and OAuth2 CORS – Facebook api

when we access the apis from a node server using axios client it always run in to the following error: XMLHttpRequest cannot load http://localhost:8089/public/api. Redirect from 'http://localhost:8089/public/api/' to 'http://localhost:8089/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present…

VIEW QUESTION

Upload/Send file to Facebook via Send Api Reference – Facebook api

Here is the curl From Facebook Docs to Upload a file to their servers for sending to the specified user: curl -F recipient='{"id":"USER_ID"}' -F message='{"attachment":{"type":"file", "payload":{}}}' -F filedata=@/tmp/receipt.pdf "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" curl -F 'recipient={"id":"USER_ID"}' -F 'message={"attachment":{"type":"audio", "payload":{}}}' -F 'filedata=@/tmp/clip.mp3;type=audio/mp3' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" I am…

VIEW QUESTION
Back To Top
Search