-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPX: Forbidden host: localhost #486
Comments
Hi, Best regards, |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
Would you please provide a reproduction of your setup? 🙏🏼 |
Hi,
|
This comment was marked as duplicate.
This comment was marked as duplicate.
I tried to create a simple reproduction here. |
Thanks for providing reproduction @narduin. I've noticed the issue is that the port is being stripped from normalized domains but being checked later on in ipx because of In the meantime, simplest fix is to drop the port from domains: image: {
domains: ['localhost']
}, |
Thanks @pi0, I can't believe I did not try that… |
@narduin Thanks for the reply, I tried your solution but still I get forbidden error at nuxt-img src="/oui.jpg" />, however adding localhost to the src ( nuxt-img src="http://localhost:3003/oui-express.jpg" />) works. @pi0 I tried your suggestion as well but that doesn't work for me image: { |
@makadiwa Do you also get "Forbidden Host" error by removing port from config? |
@pi0 I'm getting Forbidden path error after removing port from config. Failed to load resource: the server responded with a status of 403 (IPX: Forbidden path) |
GET http://localhost:3006/_ipx/s_328x224/homepage/apple.png 403 (IPX: Forbidden path) |
Can you please try with 0.7.1 and fresh lock? If issue persists, would be happy to reopen and track. |
Error while using nuxt-img 0.7.1: nuxt.config: |
I am using @nuxt/image package to serve my images on my project. here is my package information
package.json file
nuxt.config.js
as mentioned inside docs.
my nuxtjs projects is served on localhost:4000 and my backend which is in Laravel is served on localhost:8000 port number.
when I try to get images from my server it returns
IPX: Forbidden host: localhost
Please help me
thank you
The text was updated successfully, but these errors were encountered: