All Questions
15,228 questions
-1
votes
0
answers
55
views
Netlify function fails with "API key expired" from Google Gemini API, despite new key and correct configuration Body (Cuerpo de la pregunta):?
I have a static site on Netlify that uses a serverless function to securely call the Google Gemini API. The Netlify deploy is successful and reports "1 function deployed", but every call to ...
1
vote
0
answers
54
views
Display html file on JEditorPane in swing java
I am using the JEditorPane component to display Persian and English html files. I created the html files from word files. When I open the html files alone, they are displayed correctly.
However, when ...
0
votes
1
answer
96
views
Gmail API HTML message with UTF-8 character-set extended characters
Just converted my GCP cloud Java app to send email messages to Google Workspace via Gmail API rather than sendmail. In the past I was able to format HTML UTF-8 and send extended characters, but now it ...
0
votes
1
answer
90
views
Nonce not working in browser even though it is set in policy and script
The nonce doesn't seem to work anywhere. Currently we cut out everything that could make problems, since of course it should be generated, but now it is just static for testing purposes.
Our content ...
0
votes
1
answer
67
views
I am running a HTML code on a springboot which is misplaced while going on mail [closed]
Actually i wrote a code in Java which is responsible to format a HTML birthday card according to employee birthday.
Issue i am facing that if the mail is open on thunderbird it is perfect but while ...
1
vote
1
answer
54
views
Update from Tomcat 8.5 to 9: different caching behaviour
I have a web-application, which displays some 3D objects. The 3D objects are static files in a TomCat subdirectory. The app is based on Java 8 and JavaScript. If it runs under TomCat 8.5 everything ...
1
vote
0
answers
38
views
intl-tel-input erro in jhipster - problem with CSP
I'm having problems regarding CSP rules in my jhipster project, I'm using the intl-tel-input plugin, the problem is, locally the flags (flags.png) work, load and are visible to the user, but when I ...
0
votes
0
answers
54
views
HMTL image isn't shown in browser after sending it with the httpExchange responseBody
I'm working on a small com.sun.net.httpserver project where i want to show images a user has uploaded.
I already managed to get the image and safe it onto the file system.
Now i want to send the image ...
0
votes
0
answers
43
views
set default Locale in s SpringBoot - Thymeleaf
I have this template:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale != null ? #locale.language : 'en'}" lang="en">
<head>
...
0
votes
0
answers
29
views
How to recognise tablet devices in browsers in java
Here is the code to recognize the tablet devices using the spring mobile dependency but it is not working and kept returning null, do you know any solution?
public static boolean isTablet(...
0
votes
0
answers
67
views
Thymeleaf - Replace common parts in a fragment
I have a file named footerScripts.html:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<body>
<div th:fragment="common-scripts"&...
0
votes
1
answer
113
views
How to fix this: Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' is not supported
I have a Spring Boot REST API, and it works perfectly when tested via Postman—all HTTP methods function as expected. However, when I try to interact with the API from the client-side application, I ...
1
vote
0
answers
55
views
SpringBoot + Thymeleaf + Spring Security: loading images but no CSS
I have this template:
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta ...
0
votes
1
answer
54
views
JLabel: how to get space between two span tags
Have following program
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;
public class ...
0
votes
0
answers
39
views
using Jquery load assets in android studio
I have been trying to use jQuery's Load in a webView through Android Studio. I have an HTML page that, when I click a button, would load the new HTML and replace the content of a DIV with the new HTML....