[google-appengine] Re: Serving Static Files, Issue with Content Security Policy

2018-06-29 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine
This thread is off-topic for Groups for which is reserved for general 
discussion of GCP products and services, not for troubleshooting and/or 
reporting issues. If you suspect this is a defect on the platform, you have 
the option to file an issue tracker via the channels detailed here 
. 

Meantime, I suggest you provide the answers my colleagues are asking on the 
StackOverflow 

 
thread, like how are you implementing Express (and the headers) so we may 
be able to take a look further on the issue at hand.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8d3f2c3a-6551-4782-9e54-94d3957ba341%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Serving Static Files, Issue with Content Security Policy

2018-06-28 Thread 'Dennis Yurkevich' via Google App Engine
Hello Kenworth,

I do not think the solution is a good one. It is a workaround.

At the very least we need to have documentation explaining any additional
headers being set in the dev environment.

In an ideal scenario they should not be there.


On Wed, 27 Jun 2018 at 23:15, 'Kenworth (Google Cloud Platform)' via Google
App Engine  wrote:

> It seems you also rightfully posted this issue to StackOverflow
> 
> on tags we monitor, and provided your solution. For users experiencing the
> same issue, please follow the thread below:
>
>
> https://stackoverflow.com/questions/51040045/google-app-engine-content-security-policy-issues
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/ed29efca-2ee5-4a8c-a33c-90036701542f%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CANamN%2B59sJUuBreOKw0u0P5YtGPWqL75hZEkwbayk-Qmt8D8rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Serving Static Files, Issue with Content Security Policy

2018-06-27 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine


It seems you also rightfully posted this issue to StackOverflow 

 
on tags we monitor, and provided your solution. For users experiencing the 
same issue, please follow the thread below: 

https://stackoverflow.com/questions/51040045/google-app-engine-content-security-policy-issues

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ed29efca-2ee5-4a8c-a33c-90036701542f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Serving static files problem

2009-09-08 Thread bbayer

I have sold it. It seems there is no need to prior "./" . Because on
production server static data could reside in different place.

On Sep 2, 1:24 pm, "Nick Johnson (Google)" 
wrote:
> Hi bbayer,
> Have you checked the capitalization of your files and the places where you
> reference them? Windows is not case-sensitive, but App Engine is.
>
> -Nick Johnson
>
>
>
> On Tue, Sep 1, 2009 at 12:02 AM, bbayer  wrote:
>
> > Hello,
> > I have an application and it is working like a charm on a win32
> > machine with development server. The problem occurs when I uploaded it
> > to app engine. It seems it couldnt find my static folder contents. It
> > responds 404 when I am trying to get css files. Here it is app.yml
>
> > handlers:
>
> > - url: /media
> >  static_dir: ./media
>
> > - url: /favicon\.ico
> >  static_files: ./media/favicon.ico
> >  upload: ./media/favicon.ico
>
> > - url: /robots\.txt
> >  static_files: ./templates/robots.txt
> >  upload: ./templates/robots.txt
>
> > - url: /update
> >  login: admin
> >  script: django_bootstrap.py
>
> > - url: .*
> >  script: django_bootstrap.py
>
> > templates directory is django directory and there is nothing about it.
> > All problem is related with media folder. Any idea?
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files problem

2009-09-02 Thread Nick Johnson (Google)
Hi bbayer,
Have you checked the capitalization of your files and the places where you
reference them? Windows is not case-sensitive, but App Engine is.

-Nick Johnson

On Tue, Sep 1, 2009 at 12:02 AM, bbayer  wrote:

>
> Hello,
> I have an application and it is working like a charm on a win32
> machine with development server. The problem occurs when I uploaded it
> to app engine. It seems it couldnt find my static folder contents. It
> responds 404 when I am trying to get css files. Here it is app.yml
>
> handlers:
>
> - url: /media
>  static_dir: ./media
>
>
> - url: /favicon\.ico
>  static_files: ./media/favicon.ico
>  upload: ./media/favicon.ico
>
> - url: /robots\.txt
>  static_files: ./templates/robots.txt
>  upload: ./templates/robots.txt
>
> - url: /update
>  login: admin
>  script: django_bootstrap.py
>
> - url: .*
>  script: django_bootstrap.py
>
> templates directory is django directory and there is nothing about it.
> All problem is related with media folder. Any idea?
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files problem

2009-09-01 Thread Brandon N. Wirtz

I don't know if it matters but I put all my stuff in the directory called
Static...


- url: /robots\.txt
  static_files: static/robots.txt
  upload: static/robots\.txt

This format works.  Likely you can swap media for Static... but your .'s and
/'s seem to be in places other than where mine are...



-Original Message-
From: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] On Behalf Of bbayer
Sent: Monday, August 31, 2009 4:02 PM
To: Google App Engine
Subject: [google-appengine] Serving static files problem


Hello,
I have an application and it is working like a charm on a win32
machine with development server. The problem occurs when I uploaded it
to app engine. It seems it couldnt find my static folder contents. It
responds 404 when I am trying to get css files. Here it is app.yml

handlers:

- url: /media
  static_dir: ./media


- url: /favicon\.ico
  static_files: ./media/favicon.ico
  upload: ./media/favicon.ico

- url: /robots\.txt
  static_files: ./templates/robots.txt
  upload: ./templates/robots.txt

- url: /update
  login: admin
  script: django_bootstrap.py

- url: .*
  script: django_bootstrap.py

templates directory is django directory and there is nothing about it.
All problem is related with media folder. Any idea?




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files

2009-03-02 Thread Manuel Ignacio

hi, i had the same problem , when i type this application:
laboratorio_puerto_real and i changed for this application:
laboratoriopuertoreal
and it worked
i hope this help you
regards

On Jan 26, 5:41 am, James Ashley  wrote:
> I feel like a complete idiot.
>
> Here's my app.yaml:
>
> application: whatever
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /static
>    static_dir: static
>
> When I try to run dev_appserver, I get this exception/stack trace:
>
> $ python ./dev_appserver.py  -d ../pyjamas/
> ERROR    2009-01-26 04:15:15,236 dev_appserver_main.py] Fatal error
> when loading
>  application configuration:
> mapping values are not allowed here
>   in "../pyjamas/app.yaml", line 8, column 14
>
> I've compared it with app.yaml's from various working projects, and I
> just don't see the difference.
>
> What am I doing that's bone-headed here?
>
> Thanks,
> James

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files

2009-01-27 Thread James Ashley

That did the trick.  Thank you [both]

On Jan 26, 2:50 am, Blixt  wrote:
> Looks to me like there's three spaces in front of "static_dir:
> static". Try removing one of the spaces so that there are only two.
>
> Regards,
> Andreas
>
> On Jan 26, 5:41 am, James Ashley  wrote:
>
> > I feel like a complete idiot.
>
> > Here's my app.yaml:
>
> > application: whatever
> > version: 1
> > runtime: python
> > api_version: 1
>
> > handlers:
> > - url: /static
> >    static_dir: static
>
> > When I try to run dev_appserver, I get this exception/stack trace:
>
> > $ python ./dev_appserver.py  -d ../pyjamas/
> > ERROR    2009-01-26 04:15:15,236 dev_appserver_main.py] Fatal error
> > when loading
> >  application configuration:
> > mapping values are not allowed here
> >   in "../pyjamas/app.yaml", line 8, column 14
>
> > I've compared it with app.yaml's from various working projects, and I
> > just don't see the difference.
>
> > What am I doing that's bone-headed here?
>
> > Thanks,
> > James
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files

2009-01-26 Thread Blixt

Looks to me like there's three spaces in front of "static_dir:
static". Try removing one of the spaces so that there are only two.

Regards,
Andreas

On Jan 26, 5:41 am, James Ashley  wrote:
> I feel like a complete idiot.
>
> Here's my app.yaml:
>
> application: whatever
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /static
>    static_dir: static
>
> When I try to run dev_appserver, I get this exception/stack trace:
>
> $ python ./dev_appserver.py  -d ../pyjamas/
> ERROR    2009-01-26 04:15:15,236 dev_appserver_main.py] Fatal error
> when loading
>  application configuration:
> mapping values are not allowed here
>   in "../pyjamas/app.yaml", line 8, column 14
>
> I've compared it with app.yaml's from various working projects, and I
> just don't see the difference.
>
> What am I doing that's bone-headed here?
>
> Thanks,
> James
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Serving static files

2009-01-26 Thread David Symonds

On Mon, Jan 26, 2009 at 3:41 PM, James Ashley  wrote:


> Here's my app.yaml:
>
> application: whatever
> version: 1
> runtime: python
> api_version: 1
>
> handlers:
> - url: /static
>   static_dir: static
>
> When I try to run dev_appserver, I get this exception/stack trace:
>
> $ python ./dev_appserver.py  -d ../pyjamas/
> ERROR2009-01-26 04:15:15,236 dev_appserver_main.py] Fatal error
> when loading
>  application configuration:
> mapping values are not allowed here
>  in "../pyjamas/app.yaml", line 8, column 14
>
> I've compared it with app.yaml's from various working projects, and I
> just don't see the difference.

It looks fine to me, too. The handlers entry is identical to what I've
got going fine in my projects.

It might be something fiddly. Do you have a newline character at the
end of the file? Are you using a funky character? Try retyping it in
by hand (no copy-n-paste).


Dave.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---