I tried using the HTTP protocol. So I modified `MERCURE_EXTRA_DIRECTIVES` > `cors_origins` in compose.yaml to http://127.0.0.1:8000 and then ran the following command: `symfony server:start --no-tls -d` , and it works fine.
I'm worried about…
…I suppose it should work well. That's a good option to try at least to make sure everything works with HTTP and that the problem is with HTTPS only.
2/ Try to make Mercure use HTTPS. I think the correct way would be to…
That response was wonderful. Just with...
```
# api/config/packages/api_platform.yaml
api_platform:
mercure:
enabled: false
```
It solved the problem. Thank you very much!
Hey Aries,
Turbo tutorial is released: https://symfonycasts.com/screencast/turbo - and we do talk about Mercure there :) Enjoy! Also, feel free to use our advanced search to find more related content in other tutorials, e.g. [this](https://symfonycasts.com/search?q=mercure&sort=most%20relevant…
The way I see it, there are 2 approaches to target specific pages with mercure turbo streams.
1. You can add an identifier to the target element's ID, like you do in this course
2. You can add an identifier to the topic that…
Hello,
I do not think you should be advertising for Mercure's "managed service".
I tried it. There are no free trials or demonstrations of how the managed service works so you're basically throwing $30 into a black hole and hoping something cool pops…
…problem is that Mercure is running in http and your site is running on https. This different "scheme", iirc, makes Mercure and your site work like they're on different domains, which means you have CORS problems. See if you can getting Mercure running in…
Hi sir, thanks for your tutos but when i use docker for mercure i get this error:
Access to resource at 'http://127.0.0.1:61364/.well-known/mercure?topic=product-reviews' from origin 'https://127.0.0.1:8000' has been blocked by CORS…
…access `localhost:8000/.well-known/mercure`, it's a 404 i receive.
Then, when i try to dump the env vars, searching for `MERCURE`, it returns an empty array.
the symfony changelog states, for 4.26 : - Remove built-in Mercure support (use explicit Docker Compose…
Hi team!
Are you going to publish a demo of mercure without using symfony turbo in this course?
Some reactjs example using api platform?
Thanks!
Hey Tristan P.!
Gotcha! I haven't set up Mercure with Docker yet (and I haven't used ddev), but I'll do my best to offer some debugging suggestions :).
Based on the ddev docs, it looks like you did the correct thing with the…
Great!, I would only add advanced topics such as mercure protocol and CQRS. Thanks
|
|
// ... lines 1 - 7
|
|
class ArticleFixtures extends BaseFixture |
|
{ |
|
private static $articleTitles = [ |
|
'Why Asteroids Taste Like Bacon', |
|
'Life on Planet Mercury: Tan, Relaxing and Fabulous', |
|
'Light Speed Travel: Fountain of Youth or Fallacy', |
|
]; |
|
|
|
private static $articleImages = [ |
|
'asteroid.jpeg', |
|
'mercury.jpeg', |
|
'lightspeed.png', |
|
]; |
|
|
|
private static $articleAuthors = [ |
|
'Mike Ferengi', |
|
'Amy Oort', |
|
]; |
|
|
// ... lines 26 - 64
|
|
} |
See Code Block in Script
…the different second-level domain mercure.fake-domain.com".") in "admin/page/email-edit-body.html.twig at line 25.
**my code:**
``
I create a temporary solution to inject the token, [find the code in my comment at](https://github.com/symfony/mercure/issues/84)
…
…Symfony 7.2.5, Mercure, and Symfony CLI.
I ran the command `symfony server:ca:install` to use HTTPS locally.
I accessed my website with the URL https://127.0.0.1:8000
I got an error: `Access to resource at 'http://127.0.0…
…7 with Docker and Mercure locally. I can't get HTTPS for `MERCURE_URL`.
When I run `symfony var:export --multiline | grep MERCURE`, I get the following lines:
```cli
export MERCURE_PUBLIC_URL=http://127.0.0.1:32928/.well-known/mercure
export MERCURE_URL=http:/…
…ApiPlatform configuration requires Mercure somehow, it might be so that you just need to turn this off in the configuration and it will not require you to install it anymore. IIRC it should be something like:
```
# api/config/packages/api_platform.yaml
api_platform:
mercure:
…
Hi, I'm wondering about the template function `turbo_stream_listen` and authorization.
I have not set the anonymous directive within the mercure config.
The php publish method is using the configured jwt and the message is published. Whereas on the listening part I always…
…json was edited:
```
"controllers": {
"@symfony/ux-turbo": {
"turbo-core": {
"enabled": true,
"fetch": "eager"
},
"mercure-turbo-stream": {
"enabled": false,
"fetch": "eager"
}
}
},
```
At my composer.json I have the *"symfony/ux-turbo": "^2.16",* version
My project does not have a importmap.php
But when I'm…
|
{ |
|
"controllers": { |
|
|
// ... lines 3 - 12
|
|
"@symfony/ux-turbo": { |
|
"turbo-core": { |
|
"enabled": true, |
|
"fetch": "eager" |
|
}, |
|
"mercure-turbo-stream": { |
|
"enabled": false, |
|
"fetch": "eager" |
|
} |
|
} |
|
}, |
|
|
// ... line 24
|
|
} |
See Code Block in Script
x
131