Spring Boot 2 not serializing LocalDateTime
I recently tried to implement a micro service using spring-boot 2.
Now, whenever I attempt to return an object which contains a java.time.LocalDateTime
from my REST service, the LocalDateTime get serialized as an array of integers. Like so:
{
"id": "5bf1425f9f8de267f04b22ad",
"description": "aaaaaarrrgggghhhhh",
"timestamp": [
2018,
11,
18,
11,
43,
43,
889000000
],
"time": 2.25,
...
}
I have tried configuring the ObjectMapper
through settings in application.yml
spring:
jackson:
serialization:
write-dates-as-timestamps: false
but doesn't work. I have also tried configuring a new ObjectMapper through a Spring Configuration class, like so:
@Configuration
public class JacksonConfig {
@Bean
@Primary
public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) {
final ObjectMapper objectMapper = builder.build();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
return objectMapper;
}
}
My configuration gets loaded (debugger stops at a breakpoint) - it's just that it does nothing.
I tried adding jackson
dependencies manually (also for the jsr310 module) to my pom.xml - also without any luck.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
For some reason it looks like Spring Boot is ignoring my attempts to anything with the ObjectMapper, and it keeps returning the same result.
Setting log level to DEBUG for com.fasterxml
in the application.yml
also yields no output:
logging:
level:
com.fasterxml: DEBUG
I use Spring Boot 2.1.0-RELEASE with Jackson 2.9.7.
The basic pom file was generated from https://start.spring.io My project compiles for and runs on a Java 8 JVM.
java spring spring-boot datetime jackson2
|
show 2 more comments
I recently tried to implement a micro service using spring-boot 2.
Now, whenever I attempt to return an object which contains a java.time.LocalDateTime
from my REST service, the LocalDateTime get serialized as an array of integers. Like so:
{
"id": "5bf1425f9f8de267f04b22ad",
"description": "aaaaaarrrgggghhhhh",
"timestamp": [
2018,
11,
18,
11,
43,
43,
889000000
],
"time": 2.25,
...
}
I have tried configuring the ObjectMapper
through settings in application.yml
spring:
jackson:
serialization:
write-dates-as-timestamps: false
but doesn't work. I have also tried configuring a new ObjectMapper through a Spring Configuration class, like so:
@Configuration
public class JacksonConfig {
@Bean
@Primary
public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) {
final ObjectMapper objectMapper = builder.build();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
return objectMapper;
}
}
My configuration gets loaded (debugger stops at a breakpoint) - it's just that it does nothing.
I tried adding jackson
dependencies manually (also for the jsr310 module) to my pom.xml - also without any luck.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
For some reason it looks like Spring Boot is ignoring my attempts to anything with the ObjectMapper, and it keeps returning the same result.
Setting log level to DEBUG for com.fasterxml
in the application.yml
also yields no output:
logging:
level:
com.fasterxml: DEBUG
I use Spring Boot 2.1.0-RELEASE with Jackson 2.9.7.
The basic pom file was generated from https://start.spring.io My project compiles for and runs on a Java 8 JVM.
java spring spring-boot datetime jackson2
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
2
Do you have@EnableWebMvc
on one of your@Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.
– teppic
Nov 18 '18 at 22:36
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00
|
show 2 more comments
I recently tried to implement a micro service using spring-boot 2.
Now, whenever I attempt to return an object which contains a java.time.LocalDateTime
from my REST service, the LocalDateTime get serialized as an array of integers. Like so:
{
"id": "5bf1425f9f8de267f04b22ad",
"description": "aaaaaarrrgggghhhhh",
"timestamp": [
2018,
11,
18,
11,
43,
43,
889000000
],
"time": 2.25,
...
}
I have tried configuring the ObjectMapper
through settings in application.yml
spring:
jackson:
serialization:
write-dates-as-timestamps: false
but doesn't work. I have also tried configuring a new ObjectMapper through a Spring Configuration class, like so:
@Configuration
public class JacksonConfig {
@Bean
@Primary
public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) {
final ObjectMapper objectMapper = builder.build();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
return objectMapper;
}
}
My configuration gets loaded (debugger stops at a breakpoint) - it's just that it does nothing.
I tried adding jackson
dependencies manually (also for the jsr310 module) to my pom.xml - also without any luck.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
For some reason it looks like Spring Boot is ignoring my attempts to anything with the ObjectMapper, and it keeps returning the same result.
Setting log level to DEBUG for com.fasterxml
in the application.yml
also yields no output:
logging:
level:
com.fasterxml: DEBUG
I use Spring Boot 2.1.0-RELEASE with Jackson 2.9.7.
The basic pom file was generated from https://start.spring.io My project compiles for and runs on a Java 8 JVM.
java spring spring-boot datetime jackson2
I recently tried to implement a micro service using spring-boot 2.
Now, whenever I attempt to return an object which contains a java.time.LocalDateTime
from my REST service, the LocalDateTime get serialized as an array of integers. Like so:
{
"id": "5bf1425f9f8de267f04b22ad",
"description": "aaaaaarrrgggghhhhh",
"timestamp": [
2018,
11,
18,
11,
43,
43,
889000000
],
"time": 2.25,
...
}
I have tried configuring the ObjectMapper
through settings in application.yml
spring:
jackson:
serialization:
write-dates-as-timestamps: false
but doesn't work. I have also tried configuring a new ObjectMapper through a Spring Configuration class, like so:
@Configuration
public class JacksonConfig {
@Bean
@Primary
public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) {
final ObjectMapper objectMapper = builder.build();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
return objectMapper;
}
}
My configuration gets loaded (debugger stops at a breakpoint) - it's just that it does nothing.
I tried adding jackson
dependencies manually (also for the jsr310 module) to my pom.xml - also without any luck.
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
For some reason it looks like Spring Boot is ignoring my attempts to anything with the ObjectMapper, and it keeps returning the same result.
Setting log level to DEBUG for com.fasterxml
in the application.yml
also yields no output:
logging:
level:
com.fasterxml: DEBUG
I use Spring Boot 2.1.0-RELEASE with Jackson 2.9.7.
The basic pom file was generated from https://start.spring.io My project compiles for and runs on a Java 8 JVM.
java spring spring-boot datetime jackson2
java spring spring-boot datetime jackson2
edited Nov 19 '18 at 9:17
Samuel J Mathew
3,56212229
3,56212229
asked Nov 18 '18 at 19:46
Martin Jes RasmussenMartin Jes Rasmussen
738
738
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
2
Do you have@EnableWebMvc
on one of your@Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.
– teppic
Nov 18 '18 at 22:36
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00
|
show 2 more comments
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
2
Do you have@EnableWebMvc
on one of your@Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.
– teppic
Nov 18 '18 at 22:36
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
2
2
Do you have
@EnableWebMvc
on one of your @Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.– teppic
Nov 18 '18 at 22:36
Do you have
@EnableWebMvc
on one of your @Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.– teppic
Nov 18 '18 at 22:36
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00
|
show 2 more comments
3 Answers
3
active
oldest
votes
This answer is based on teppic's comment to the original post.
The issue was caused by @EnableWebMVC on one of my @Configuration classes. Removed @EnableWebMVC immediately solved the problem.
add a comment |
From your comments I found the issue as you blend the @EnableWebMvc
with sprongboot. It turns out that Spring Boot doesn’t mix well with the standard Spring MVC @EnableWebMvc
. What happens when you add the annotation is that spring boot autoconfiguration is disabled.
add a comment |
You must add jsr310 support to jackson :
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.4.0</version>
</dependency>
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53364800%2fspring-boot-2-not-serializing-localdatetime%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
This answer is based on teppic's comment to the original post.
The issue was caused by @EnableWebMVC on one of my @Configuration classes. Removed @EnableWebMVC immediately solved the problem.
add a comment |
This answer is based on teppic's comment to the original post.
The issue was caused by @EnableWebMVC on one of my @Configuration classes. Removed @EnableWebMVC immediately solved the problem.
add a comment |
This answer is based on teppic's comment to the original post.
The issue was caused by @EnableWebMVC on one of my @Configuration classes. Removed @EnableWebMVC immediately solved the problem.
This answer is based on teppic's comment to the original post.
The issue was caused by @EnableWebMVC on one of my @Configuration classes. Removed @EnableWebMVC immediately solved the problem.
answered Nov 19 '18 at 8:13
Martin Jes RasmussenMartin Jes Rasmussen
738
738
add a comment |
add a comment |
From your comments I found the issue as you blend the @EnableWebMvc
with sprongboot. It turns out that Spring Boot doesn’t mix well with the standard Spring MVC @EnableWebMvc
. What happens when you add the annotation is that spring boot autoconfiguration is disabled.
add a comment |
From your comments I found the issue as you blend the @EnableWebMvc
with sprongboot. It turns out that Spring Boot doesn’t mix well with the standard Spring MVC @EnableWebMvc
. What happens when you add the annotation is that spring boot autoconfiguration is disabled.
add a comment |
From your comments I found the issue as you blend the @EnableWebMvc
with sprongboot. It turns out that Spring Boot doesn’t mix well with the standard Spring MVC @EnableWebMvc
. What happens when you add the annotation is that spring boot autoconfiguration is disabled.
From your comments I found the issue as you blend the @EnableWebMvc
with sprongboot. It turns out that Spring Boot doesn’t mix well with the standard Spring MVC @EnableWebMvc
. What happens when you add the annotation is that spring boot autoconfiguration is disabled.
answered Nov 19 '18 at 9:21
Samuel J MathewSamuel J Mathew
3,56212229
3,56212229
add a comment |
add a comment |
You must add jsr310 support to jackson :
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.4.0</version>
</dependency>
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
add a comment |
You must add jsr310 support to jackson :
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.4.0</version>
</dependency>
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
add a comment |
You must add jsr310 support to jackson :
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.4.0</version>
</dependency>
You must add jsr310 support to jackson :
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.4.0</version>
</dependency>
answered Nov 18 '18 at 20:36
ZomzogZomzog
12
12
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
add a comment |
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Looks helpful. It’s not my home field, but I was under the impression that it’s been replaced by jackson-modules-java8? The link does contain dependencies for for Spring.
– Ole V.V.
Nov 19 '18 at 5:12
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
Should have written, that I already tried that. Also, I can see that jsr310 is indeed included as a transient dependency.
– Martin Jes Rasmussen
Nov 19 '18 at 6:29
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53364800%2fspring-boot-2-not-serializing-localdatetime%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you try to create an ObjectMapper instead of passing a builder to method args and then build a new one based on it? mapper = new ObjectMapper() and then customize it
– stacker
Nov 18 '18 at 20:12
Just created a demo project with spring-initializr, (Java 8, Maven, Web support). I ddn't do anything other than add a controller and a simple class with a LocalDateTime property, and I can't reproduce. Are you sure you don't have other dependencies that would change the configuration of Jackson?
– JB Nizet
Nov 18 '18 at 20:18
2
Do you have
@EnableWebMvc
on one of your@Configuration
classes? If so, remove it. It fights with the spring boot way of configuring spring mvc.– teppic
Nov 18 '18 at 22:36
@JBNizet I think you may be on to something. For this project I'm using mongodb - it may be that the spring-starter-mongo serializer/deserializer is the culprit - I'll get back when I have tried to remove it.
– Martin Jes Rasmussen
Nov 19 '18 at 6:32
@teppic +1 Bingo that was the problem - now I hope my Cors config still works... Too bad I can't accept your response as a solution. :)
– Martin Jes Rasmussen
Nov 19 '18 at 7:00